@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | list($class, $action, $permission, $payload) = $this->_getRoute($this->request->getPath()); |
| 88 | 88 | |
| 89 | 89 | /** @var AbstractController $class */ |
| 90 | - $class = new $class($this->request); |
|
| 90 | + $class = new $class($this->request); |
|
| 91 | 91 | |
| 92 | 92 | if (!empty($permission)) { |
| 93 | 93 | |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | |
| 293 | 293 | array_splice($var, 0, 1); |
| 294 | 294 | |
| 295 | - if ($this->requestType === 'default' && in_array($this->request->getMethod(), $data['method'])) { |
|
| 295 | + if ($this->requestType === 'default' && in_array($this->request->getMethod(), $data['method'])) { |
|
| 296 | 296 | |
| 297 | 297 | return [ |
| 298 | 298 | $data['controller'], |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | $message |
| 26 | 26 | ]; |
| 27 | 27 | |
| 28 | - $messageString = implode(' | ', $columns) . "\r\n"; |
|
| 28 | + $messageString = implode(' | ', $columns) . "\r\n"; |
|
| 29 | 29 | |
| 30 | 30 | return file_put_contents($logfile, $messageString, FILE_APPEND); |
| 31 | 31 | } |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | */ |
| 167 | 167 | public function getVariable(string $key) |
| 168 | 168 | { |
| 169 | - if(isset($this->variable[$key])) { |
|
| 169 | + if (isset($this->variable[$key])) { |
|
| 170 | 170 | return $this->variable[$key]; |
| 171 | 171 | } |
| 172 | 172 | |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | */ |
| 182 | 182 | public function hasVariable(string $key) :bool |
| 183 | 183 | { |
| 184 | - if(isset($this->variable[$key])) { |
|
| 184 | + if (isset($this->variable[$key])) { |
|
| 185 | 185 | return true; |
| 186 | 186 | } |
| 187 | 187 | |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | */ |
| 197 | 197 | public function setVariables(array $variables = []) |
| 198 | 198 | { |
| 199 | - foreach($variables AS $key=>$value) { |
|
| 199 | + foreach ($variables AS $key=>$value) { |
|
| 200 | 200 | $this->setVariable($key, $value); |
| 201 | 201 | } |
| 202 | 202 | |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | */ |
| 291 | 291 | public function __call($name, $arguments) |
| 292 | 292 | { |
| 293 | - $coreViewHelper = __NAMESPACE__ . '\Helper\\' . ucfirst($name); |
|
| 293 | + $coreViewHelper = __NAMESPACE__ . '\Helper\\' . ucfirst($name); |
|
| 294 | 294 | |
| 295 | 295 | if (!empty($this->viewHelpers[$coreViewHelper])) { |
| 296 | 296 | return $this->_callUserFuncArray($this->viewHelpers[$coreViewHelper], $arguments); |
@@ -351,8 +351,8 @@ discard block |
||
| 351 | 351 | */ |
| 352 | 352 | public function __destruct() |
| 353 | 353 | { |
| 354 | - unset( $this->variable ); |
|
| 355 | - unset( $this->template ); |
|
| 354 | + unset($this->variable); |
|
| 355 | + unset($this->template); |
|
| 356 | 356 | } |
| 357 | 357 | |
| 358 | 358 | } |
| 359 | 359 | \ No newline at end of file |