Completed
Push — 1.x ( 549f51...b82b20 )
by Asao
02:04
created
src/Renderer.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -140,7 +140,9 @@  discard block
 block discarded – undo
140 140
      */
141 141
     public function __get($name)
142 142
     {
143
-        if ($name === 'section') return $this->section;
143
+        if ($name === 'section') {
144
+            return $this->section;
145
+        }
144 146
         return $this->service($name);
145 147
     }
146 148
 
@@ -201,11 +203,9 @@  discard block
 block discarded – undo
201 203
             foreach($file as $key => $val) {
202 204
                 $this->section->set($key, $val);
203 205
             }
204
-        }
205
-        elseif(!$this->view_file = $this->getPath($file)) {
206
+        } elseif(!$this->view_file = $this->getPath($file)) {
206 207
             return null;
207
-        }
208
-        else {
208
+        } else {
209 209
             $this->setContent($this->renderViewFile());
210 210
         }
211 211
         if (!isset($this->layout_file)) {
Please login to merge, or discard this patch.