Completed
Push — master ( c64eb0...93453c )
by Flo
02:26
created
src/View/ViewController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/View/Helper/RenderView.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
             $subview->setTemplatePath($this->view->getTemplatePath());
34 34
         }
35 35
 
36
-        $subview->setTemplate( $template );
37
-        $subview->setVariables( $variables );
36
+        $subview->setTemplate($template);
37
+        $subview->setVariables($variables);
38 38
         return $subview->render();
39 39
     }
40 40
 
Please login to merge, or discard this patch.
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.