Passed
Push — master ( d8158c...fdfcd6 )
by Flo
04:19 queued 02:20
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   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      */
165 165
     public function getVariable(string $key)
166 166
     {
167
-        if(isset($this->variable[$key])) {
167
+        if (isset($this->variable[$key])) {
168 168
             return $this->variable[$key];
169 169
         }
170 170
 
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      */
180 180
     public function hasVariable(string $key) :bool
181 181
     {
182
-        if(isset($this->variable[$key])) {
182
+        if (isset($this->variable[$key])) {
183 183
             return true;
184 184
         }
185 185
 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
      */
195 195
     public function setVariables(array $variables = [])
196 196
     {
197
-        foreach($variables AS $key=>$value) {
197
+        foreach ($variables AS $key=>$value) {
198 198
             $this->setVariable($key, $value);
199 199
         }
200 200
 
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 
270 270
         } catch (\Exception $e) {
271 271
 
272
-            while(ob_get_level() > 1) {
272
+            while (ob_get_level() > 1) {
273 273
                 ob_end_clean();
274 274
             }
275 275
 
@@ -353,8 +353,8 @@  discard block
 block discarded – undo
353 353
      */
354 354
     public function __destruct()
355 355
     {
356
-        unset( $this->variable );
357
-        unset( $this->template );
356
+        unset($this->variable);
357
+        unset($this->template);
358 358
     }
359 359
 
360 360
 }
361 361
\ No newline at end of file
Please login to merge, or discard this patch.