Skip to content

Commit

Permalink
CS Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
s3b4stian committed Nov 14, 2016
1 parent 9d50652 commit a34619e
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 18 deletions.
2 changes: 1 addition & 1 deletion src/Linna/DI/DIResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private function buildDependencyTree(int $level, string $class)

/**
* Build objects from dependencyTree
*
*
* @param array $array Dependency Tree
*/
private function buildObjects(array $array)
Expand Down
10 changes: 5 additions & 5 deletions src/Linna/Database/MysqlPDOAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@

/**
* Mysql PDO Adapter
*
*
*/
class MysqlPDOAdapter implements AdapterInterface
{
/**
* @var string $dns Dsn string for mysql
* @var string $dns Dsn string for mysql
*/
protected $dsn;

Expand All @@ -36,13 +36,13 @@ class MysqlPDOAdapter implements AdapterInterface

/**
*
* @var array $options PDO options
* @var array $options PDO options
*/
protected $options;

/**
* Constructor
*
*
* @param string $dsn
* @param string $user
* @param string $password
Expand All @@ -61,7 +61,7 @@ public function __construct(string $dsn, string $user, string $password, array $

/**
* Get Resource
*
*
* @return \PDO
*/
public function getResource()
Expand Down
3 changes: 1 addition & 2 deletions src/Linna/Http/RouterCached.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ public function __construct(array $routes, array $options, \Memcached $memcached
public function validate(string $requestUri, string $requestMethod)
{
//check if route is already cached
if (($cachedRoute = $this->cache->get($requestUri)) !== false)
{
if (($cachedRoute = $this->cache->get($requestUri)) !== false) {
//get cached route
$this->route = $cachedRoute;
//ecit
Expand Down
2 changes: 1 addition & 1 deletion src/Linna/Mvc/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class View implements \SplObserver

/**
* Constructor
*
*
* @param \Linna\Mvc\Model $model Data Model
*/
public function __construct(Model $model)
Expand Down
2 changes: 1 addition & 1 deletion src/Linna/Session/DatabaseSessionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class DatabaseSessionHandler implements SessionHandlerInterface

/**
* Constructor
*
*
* @param Database $storage Database object
*/
public function __construct(Database $storage)
Expand Down
2 changes: 1 addition & 1 deletion src/Linna/Session/MemcachedSessionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class MemcachedSessionHandler implements SessionHandlerInterface

/**
* Constructor
*
*
* @param Memcached $memcached Memcached resource
*/
public function __construct(Memcached $memcached)
Expand Down
11 changes: 5 additions & 6 deletions src/Linna/Session/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function regenerate()

/**
* Set cookie
*
*
*/
private function setCookie()
{
Expand All @@ -151,8 +151,7 @@ private function setCookie()
*/
public function start()
{
if (session_status() !== 2)
{
if (session_status() !== 2) {
//prepare session start
$this->prepare();

Expand All @@ -172,7 +171,7 @@ public function start()

/**
* Set session options before start
*
*
*/
private function prepare()
{
Expand Down Expand Up @@ -229,7 +228,7 @@ public function setSessionHandler(SessionHandlerInterface $handler)

/**
* Destroy session
*
*
*/
public function destroy()
{
Expand All @@ -242,7 +241,7 @@ public function destroy()

/**
* Write session data and end session
*
*
*/
public function commit()
{
Expand Down
1 change: 0 additions & 1 deletion tests/DI/DIContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@ public function testContainer()
$this->assertEquals(true, isset($container->login));
$this->assertEquals(false, isset($container->login2));
$this->assertEquals(false, $container->login2);

}
}

0 comments on commit a34619e

Please sign in to comment.