@@ -199,7 +199,7 @@ |
||
| 199 | 199 | return $this->callback; |
| 200 | 200 | } |
| 201 | 201 | |
| 202 | - return function () { |
|
| 202 | + return function() { |
|
| 203 | 203 | }; |
| 204 | 204 | } |
| 205 | 205 | |
@@ -222,7 +222,7 @@ |
||
| 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]; |
@@ -134,7 +134,7 @@ |
||
| 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 |
@@ -165,7 +165,7 @@ |
||
| 165 | 165 | |
| 166 | 166 | //get parameter from constructor |
| 167 | 167 | //can return error when constructor not declared |
| 168 | - $constructor = (new ReflectionClass($class))->getConstructor();//->getParameters(); |
|
| 168 | + $constructor = (new ReflectionClass($class))->getConstructor(); //->getParameters(); |
|
| 169 | 169 | //this should resolve the error when a class without constructor is encountered |
| 170 | 170 | $parameters = \is_null($constructor) ? [] : $constructor->getParameters(); |
| 171 | 171 | |