@@ -170,6 +170,9 @@ discard block |
||
170 | 170 | return false; |
171 | 171 | } |
172 | 172 | |
173 | + /** |
|
174 | + * @param boolean|string $layout |
|
175 | + */ |
|
173 | 176 | public function setLayout($layout) |
174 | 177 | { |
175 | 178 | |
@@ -211,6 +214,10 @@ discard block |
||
211 | 214 | * @return string processed content |
212 | 215 | */ |
213 | 216 | //@TODO: come back and clean up this and the way the view receives stuff |
217 | + |
|
218 | + /** |
|
219 | + * @param string|boolean $file |
|
220 | + */ |
|
214 | 221 | private function process($file) |
215 | 222 | { |
216 | 223 | ob_start(); |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | $this->view = $this->process($this->view); |
115 | 115 | } |
116 | 116 | |
117 | - if (! is_null($this->layout)) { |
|
117 | + if (!is_null($this->layout)) { |
|
118 | 118 | return $this->process($this->layout); |
119 | 119 | } else { |
120 | 120 | return $this->view; |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | } |
248 | 248 | |
249 | 249 | foreach ($sheets as $sheet) { |
250 | - $string .= '<link rel="stylesheet" href="' . $sheet .'">' . "\r\n"; |
|
250 | + $string .= '<link rel="stylesheet" href="' . $sheet . '">' . "\r\n"; |
|
251 | 251 | } |
252 | 252 | |
253 | 253 | return $string; |