Passed
Push — master ( cad56d...d8158c )
by Flo
05:01
created
src/View/Helper/RenderBlock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function __invoke(string $block, string $defaultValue = '')
24 24
     {
25
-        if($this->view->getVariable($block) === '') {
25
+        if ($this->view->getVariable($block) === '') {
26 26
             return $defaultValue;
27 27
         }
28 28
         return trim($this->view->getVariable($block));
Please login to merge, or discard this patch.
src/Controller/Dispatcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         list($class, $action, $permission, $payload) = $this->_getRoute($this->request->getPath());
85 85
 
86 86
         /** @var Controller $class */
87
-        $class   = new $class($this->request);
87
+        $class = new $class($this->request);
88 88
 
89 89
         if (!empty($permission)) {
90 90
 
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 
290 290
             array_splice($var, 0, 1);
291 291
 
292
-            if ($this->requestType === 'default'  && in_array($this->request->getMethod(), $data['method'])) {
292
+            if ($this->requestType === 'default' && in_array($this->request->getMethod(), $data['method'])) {
293 293
 
294 294
                 return [
295 295
                     $data['controller'],
Please login to merge, or discard this patch.
src/View/ViewController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      */
163 163
     public function getVariable(string $key)
164 164
     {
165
-        if(isset($this->variable[$key])) {
165
+        if (isset($this->variable[$key])) {
166 166
             return $this->variable[$key];
167 167
         }
168 168
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
      */
178 178
     public function hasVariable(string $key) :bool
179 179
     {
180
-        if(isset($this->variable[$key])) {
180
+        if (isset($this->variable[$key])) {
181 181
             return true;
182 182
         }
183 183
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      */
193 193
     public function setVariables(array $variables = [])
194 194
     {
195
-        foreach($variables AS $key=>$value) {
195
+        foreach ($variables AS $key=>$value) {
196 196
             $this->setVariable($key, $value);
197 197
         }
198 198
 
@@ -339,8 +339,8 @@  discard block
 block discarded – undo
339 339
      */
340 340
     public function __destruct()
341 341
     {
342
-        unset( $this->variable );
343
-        unset( $this->template );
342
+        unset($this->variable);
343
+        unset($this->template);
344 344
     }
345 345
 
346 346
 }
347 347
\ No newline at end of file
Please login to merge, or discard this patch.