@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | list($class, $action, $permission, $payload) = $this->getRoute($this->request->getPath()); |
84 | 84 | |
85 | 85 | /** @var AbstractController $class */ |
86 | - $class = new $class($this->request); |
|
86 | + $class = new $class($this->request); |
|
87 | 87 | |
88 | 88 | if (!empty($permission)) { |
89 | 89 | |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | |
334 | 334 | array_splice($var, 0, 1); |
335 | 335 | |
336 | - if ($this->requestType === 'default' && in_array($this->request->getMethod(), $data['method'])) { |
|
336 | + if ($this->requestType === 'default' && in_array($this->request->getMethod(), $data['method'])) { |
|
337 | 337 | |
338 | 338 | return [ |
339 | 339 | $data['controller'], |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | */ |
157 | 157 | public function getVariable(string $key) |
158 | 158 | { |
159 | - if(isset($this->variable[$key])) { |
|
159 | + if (isset($this->variable[$key])) { |
|
160 | 160 | return $this->variable[$key]; |
161 | 161 | } |
162 | 162 | |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | */ |
172 | 172 | public function hasVariable(string $key) :bool |
173 | 173 | { |
174 | - if(isset($this->variable[$key])) { |
|
174 | + if (isset($this->variable[$key])) { |
|
175 | 175 | return true; |
176 | 176 | } |
177 | 177 | |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | */ |
187 | 187 | public function setVariables(array $variables = []) :self |
188 | 188 | { |
189 | - foreach($variables AS $key=>$value) { |
|
189 | + foreach ($variables AS $key=>$value) { |
|
190 | 190 | $this->setVariable($key, $value); |
191 | 191 | } |
192 | 192 | |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | */ |
273 | 273 | public function __call($name, $arguments) |
274 | 274 | { |
275 | - $coreViewHelper = __NAMESPACE__ . '\Helper\\' . ucfirst($name); |
|
275 | + $coreViewHelper = __NAMESPACE__ . '\Helper\\' . ucfirst($name); |
|
276 | 276 | |
277 | 277 | if (!empty($this->viewHelpers[$coreViewHelper])) { |
278 | 278 | return $this->_callUserFuncArray($this->viewHelpers[$coreViewHelper], $arguments); |
@@ -325,8 +325,8 @@ discard block |
||
325 | 325 | */ |
326 | 326 | public function __destruct() |
327 | 327 | { |
328 | - unset( $this->variable ); |
|
329 | - unset( $this->template ); |
|
328 | + unset($this->variable); |
|
329 | + unset($this->template); |
|
330 | 330 | } |
331 | 331 | |
332 | 332 | } |
333 | 333 | \ No newline at end of file |