@@ -1,13 +1,13 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * PHPView |
|
| 4 | - * |
|
| 5 | - * @package brightnucleus/chainmail |
|
| 6 | - * @author Alain Schlesser <[email protected]> |
|
| 7 | - * @license GPL-2.0+ |
|
| 8 | - * @link http://www.brightnucleus.com/ |
|
| 9 | - * @copyright 2016 Alain Schlesser, Bright Nucleus |
|
| 10 | - */ |
|
| 3 | + * PHPView |
|
| 4 | + * |
|
| 5 | + * @package brightnucleus/chainmail |
|
| 6 | + * @author Alain Schlesser <[email protected]> |
|
| 7 | + * @license GPL-2.0+ |
|
| 8 | + * @link http://www.brightnucleus.com/ |
|
| 9 | + * @copyright 2016 Alain Schlesser, Bright Nucleus |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | namespace BrightNucleus\ChainMail\View; |
| 13 | 13 | |
@@ -22,23 +22,23 @@ discard block |
||
| 22 | 22 | class PHPView extends AbstractView |
| 23 | 23 | { |
| 24 | 24 | |
| 25 | - /** |
|
| 26 | - * Render the current Renderable for a given context. |
|
| 27 | - * |
|
| 28 | - * @since 1.0.0 |
|
| 29 | - * |
|
| 30 | - * @param array $context The context in which to render the Renderable. |
|
| 31 | - * @param string|null $content Optional. The content that the view should |
|
| 32 | - * represent. |
|
| 33 | - * @return string Rendered output of the Renderable. |
|
| 34 | - */ |
|
| 35 | - public function render(array $context, $content = null) |
|
| 36 | - { |
|
| 25 | + /** |
|
| 26 | + * Render the current Renderable for a given context. |
|
| 27 | + * |
|
| 28 | + * @since 1.0.0 |
|
| 29 | + * |
|
| 30 | + * @param array $context The context in which to render the Renderable. |
|
| 31 | + * @param string|null $content Optional. The content that the view should |
|
| 32 | + * represent. |
|
| 33 | + * @return string Rendered output of the Renderable. |
|
| 34 | + */ |
|
| 35 | + public function render(array $context, $content = null) |
|
| 36 | + { |
|
| 37 | 37 | |
| 38 | - ob_start(); |
|
| 38 | + ob_start(); |
|
| 39 | 39 | |
| 40 | - include $this->viewLocation . '.php'; |
|
| 40 | + include $this->viewLocation . '.php'; |
|
| 41 | 41 | |
| 42 | - return ob_get_clean(); |
|
| 43 | - } |
|
| 42 | + return ob_get_clean(); |
|
| 43 | + } |
|
| 44 | 44 | } |