Passed
Push — master ( b2f956...c529b3 )
by Sebastian
04:14
created
src/Linna/Router/Route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@
 block discarded – undo
199 199
             return $this->callback;
200 200
         }
201 201
 
202
-        return function () {
202
+        return function() {
203 203
         };
204 204
     }
205 205
 
Please login to merge, or discard this patch.
src/Linna/Router/Router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@
 block discarded – undo
222 222
      */
223 223
     private function buildParamFromQueryString(string $queryString): void
224 224
     {
225
-        $param = \array_map(function ($array_value) {
225
+        $param = \array_map(function($array_value) {
226 226
             $tmp = \explode('=', $array_value);
227 227
             $array_value = [];
228 228
             $key = $tmp[0];
Please login to merge, or discard this patch.
src/Linna/Session/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
             \session_start([
135 135
                 'cookie_path'      => $this->cookiePath,
136 136
                 'cookie_domain'    => $this->cookieDomain,
137
-                'cookie_lifetime'  => $this->expire,//($this->expire > 0) ? time() + $this->expire : 0,
137
+                'cookie_lifetime'  => $this->expire, //($this->expire > 0) ? time() + $this->expire : 0,
138 138
                 'cookie_secure'    => $this->cookieSecure,
139 139
                 'cookie_httponly'  => $this->cookieHttpOnly,
140 140
                 'cookie_samesite'  => $this->cookieSameSite
Please login to merge, or discard this patch.
src/Linna/Container/Container.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -159,11 +159,11 @@
 block discarded – undo
159 159
         while (true) {
160 160
 
161 161
             //initialize array if not already initialized
162
-            $this->tree[$level][$class] ??= [];
162
+            $this->tree[$level][$class] ?? = [];
163 163
 
164 164
             //get parameter from constructor
165 165
             //can return error when constructor not declared
166
-            $constructor = (new ReflectionClass($class))->getConstructor();//->getParameters();
166
+            $constructor = (new ReflectionClass($class))->getConstructor(); //->getParameters();
167 167
             //this should be resolve the error of when a class without constructor is encountered
168 168
             $parameters = \is_null($constructor) ? [] : $constructor->getParameters();
169 169
 
Please login to merge, or discard this patch.