diff --git a/src/Linna/DI/DIResolver.php b/src/Linna/DI/DIResolver.php index ad2f572d..2853c17b 100644 --- a/src/Linna/DI/DIResolver.php +++ b/src/Linna/DI/DIResolver.php @@ -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) diff --git a/src/Linna/Database/MysqlPDOAdapter.php b/src/Linna/Database/MysqlPDOAdapter.php index 2bfb2fca..3721a0c8 100644 --- a/src/Linna/Database/MysqlPDOAdapter.php +++ b/src/Linna/Database/MysqlPDOAdapter.php @@ -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; @@ -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 @@ -61,7 +61,7 @@ public function __construct(string $dsn, string $user, string $password, array $ /** * Get Resource - * + * * @return \PDO */ public function getResource() diff --git a/src/Linna/Http/RouterCached.php b/src/Linna/Http/RouterCached.php index def96a79..056c5c6c 100644 --- a/src/Linna/Http/RouterCached.php +++ b/src/Linna/Http/RouterCached.php @@ -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 diff --git a/src/Linna/Mvc/View.php b/src/Linna/Mvc/View.php index bff9318f..f1fa4c5f 100644 --- a/src/Linna/Mvc/View.php +++ b/src/Linna/Mvc/View.php @@ -40,7 +40,7 @@ class View implements \SplObserver /** * Constructor - * + * * @param \Linna\Mvc\Model $model Data Model */ public function __construct(Model $model) diff --git a/src/Linna/Session/DatabaseSessionHandler.php b/src/Linna/Session/DatabaseSessionHandler.php index 8673944d..09e4c92b 100644 --- a/src/Linna/Session/DatabaseSessionHandler.php +++ b/src/Linna/Session/DatabaseSessionHandler.php @@ -40,7 +40,7 @@ class DatabaseSessionHandler implements SessionHandlerInterface /** * Constructor - * + * * @param Database $storage Database object */ public function __construct(Database $storage) diff --git a/src/Linna/Session/MemcachedSessionHandler.php b/src/Linna/Session/MemcachedSessionHandler.php index 76abe14e..a5071cc5 100644 --- a/src/Linna/Session/MemcachedSessionHandler.php +++ b/src/Linna/Session/MemcachedSessionHandler.php @@ -32,7 +32,7 @@ class MemcachedSessionHandler implements SessionHandlerInterface /** * Constructor - * + * * @param Memcached $memcached Memcached resource */ public function __construct(Memcached $memcached) diff --git a/src/Linna/Session/Session.php b/src/Linna/Session/Session.php index 64b908b0..27ddfd09 100644 --- a/src/Linna/Session/Session.php +++ b/src/Linna/Session/Session.php @@ -132,7 +132,7 @@ public function regenerate() /** * Set cookie - * + * */ private function setCookie() { @@ -151,8 +151,7 @@ private function setCookie() */ public function start() { - if (session_status() !== 2) - { + if (session_status() !== 2) { //prepare session start $this->prepare(); @@ -172,7 +171,7 @@ public function start() /** * Set session options before start - * + * */ private function prepare() { @@ -229,7 +228,7 @@ public function setSessionHandler(SessionHandlerInterface $handler) /** * Destroy session - * + * */ public function destroy() { @@ -242,7 +241,7 @@ public function destroy() /** * Write session data and end session - * + * */ public function commit() { diff --git a/tests/DI/DIContainerTest.php b/tests/DI/DIContainerTest.php index 2b032210..55ef6ba8 100644 --- a/tests/DI/DIContainerTest.php +++ b/tests/DI/DIContainerTest.php @@ -38,6 +38,5 @@ public function testContainer() $this->assertEquals(true, isset($container->login)); $this->assertEquals(false, isset($container->login2)); $this->assertEquals(false, $container->login2); - } }