@@ -77,11 +77,11 @@ |
||
| 77 | 77 | { |
| 78 | 78 | /** @noinspection PhpUnusedParameterInspection */ |
| 79 | 79 | /** @noinspection PhpDocSignatureInspection */ |
| 80 | - $bound_capture = function (ViewModel $view, Renderer $renderer, $template) { |
|
| 80 | + $bound_capture = function(ViewModel $view, Renderer $renderer, $template) { |
|
| 81 | 81 | /** @noinspection PhpIncludeInspection */ |
| 82 | 82 | return include $template; |
| 83 | 83 | }; |
| 84 | - $anon_capture = $bound_capture->bindTo(NULL); |
|
| 84 | + $anon_capture = $bound_capture->bindTo(NULL); |
|
| 85 | 85 | |
| 86 | 86 | // A user's own error handler may throw an exception here if the include fails - which we will bubble as-is. |
| 87 | 87 | // If they have not configured an error handler, we need to throw an exception of our own. |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * KohanaView dependency container configuration for use with https://github.com/zeelot/kohana-dependencies |
|
| 4 | - * |
|
| 5 | - * @author Andrew Coulton <[email protected]> |
|
| 6 | - * @copyright 2015 inGenerator Ltd |
|
| 7 | - * @license http://kohanaframework.org/license |
|
| 8 | - */ |
|
| 3 | + * KohanaView dependency container configuration for use with https://github.com/zeelot/kohana-dependencies |
|
| 4 | + * |
|
| 5 | + * @author Andrew Coulton <[email protected]> |
|
| 6 | + * @copyright 2015 inGenerator Ltd |
|
| 7 | + * @license http://kohanaframework.org/license |
|
| 8 | + */ |
|
| 9 | 9 | return [ |
| 10 | 10 | 'kohanaview' => [ |
| 11 | 11 | 'renderer' => [ |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | return $this->use_layout; |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | - if ($this->current_request AND $this->current_request->is_ajax()) { |
|
| 82 | + if ($this->current_request and $this->current_request->is_ajax()) { |
|
| 83 | 83 | return FALSE; |
| 84 | 84 | } else { |
| 85 | 85 | return TRUE; |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | */ |
| 91 | 91 | protected function isCompileRequired($compiled_path) |
| 92 | 92 | { |
| 93 | - if ($this->recompile_always AND ! isset($this->compiled_paths[$compiled_path])) { |
|
| 93 | + if ($this->recompile_always and ! isset($this->compiled_paths[$compiled_path])) { |
|
| 94 | 94 | return TRUE; |
| 95 | 95 | } |
| 96 | 96 | |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Andrew Coulton <[email protected]> |
|
| 4 | - * @copyright 2015 inGenerator Ltd |
|
| 5 | - * @license http://kohanaframework.org/license |
|
| 6 | - */ |
|
| 3 | + * @author Andrew Coulton <[email protected]> |
|
| 4 | + * @copyright 2015 inGenerator Ltd |
|
| 5 | + * @license http://kohanaframework.org/license |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | namespace Ingenerator\KohanaView; |
| 9 | 9 | |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | /** |
| 40 | 40 | * @param TemplateSpecifyingViewModel $view |
| 41 | 41 | * |
| 42 | - * @return mixed |
|
| 42 | + * @return string |
|
| 43 | 43 | * @throws \UnexpectedValueException if no template is provided |
| 44 | 44 | */ |
| 45 | 45 | protected function validateSpecifiedTemplateName(TemplateSpecifyingViewModel $view) |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Configuration for the koharness module testing environment. |
|
| 4 | - * |
|
| 5 | - * @author Andrew Coulton <[email protected]> |
|
| 6 | - * @copyright 2013 inGenerator Ltd |
|
| 7 | - * @link https://github.com/ingenerator/koharness |
|
| 8 | - */ |
|
| 3 | + * Configuration for the koharness module testing environment. |
|
| 4 | + * |
|
| 5 | + * @author Andrew Coulton <[email protected]> |
|
| 6 | + * @copyright 2013 inGenerator Ltd |
|
| 7 | + * @link https://github.com/ingenerator/koharness |
|
| 8 | + */ |
|
| 9 | 9 | return array( |
| 10 | - 'modules' => array( |
|
| 10 | + 'modules' => array( |
|
| 11 | 11 | 'kohana-view' => __DIR__, |
| 12 | - ) |
|
| 12 | + ) |
|
| 13 | 13 | ); |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Andrew Coulton <[email protected]> |
|
| 4 | - * @copyright 2015 inGenerator Ltd |
|
| 5 | - * @license http://kohanaframework.org/license |
|
| 6 | - */ |
|
| 3 | + * @author Andrew Coulton <[email protected]> |
|
| 4 | + * @copyright 2015 inGenerator Ltd |
|
| 5 | + * @license http://kohanaframework.org/license |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | namespace Ingenerator\KohanaView; |
| 9 | 9 | |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Andrew Coulton <[email protected]> |
|
| 4 | - * @copyright 2015 inGenerator Ltd |
|
| 5 | - * @license http://kohanaframework.org/license |
|
| 6 | - */ |
|
| 3 | + * @author Andrew Coulton <[email protected]> |
|
| 4 | + * @copyright 2015 inGenerator Ltd |
|
| 5 | + * @license http://kohanaframework.org/license |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | namespace Ingenerator\KohanaView; |
| 9 | 9 | |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @author Andrew Coulton <[email protected]> |
|
| 4 | - * @copyright 2015 inGenerator Ltd |
|
| 5 | - * @license http://kohanaframework.org/license |
|
| 6 | - */ |
|
| 3 | + * @author Andrew Coulton <[email protected]> |
|
| 4 | + * @copyright 2015 inGenerator Ltd |
|
| 5 | + * @license http://kohanaframework.org/license |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | namespace Ingenerator\KohanaView; |
| 9 | 9 | |