@@ -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 | - * Configuration for the KohanaView module |
|
4 | - * |
|
5 | - * @author Andrew Coulton <[email protected]> |
|
6 | - * @copyright 2015 inGenerator Ltd |
|
7 | - * @license http://kohanaframework.org/license |
|
8 | - */ |
|
3 | + * Configuration for the KohanaView module |
|
4 | + * |
|
5 | + * @author Andrew Coulton <[email protected]> |
|
6 | + * @copyright 2015 inGenerator Ltd |
|
7 | + * @license http://kohanaframework.org/license |
|
8 | + */ |
|
9 | 9 | return [ |
10 | 10 | 'template_manager' => [ |
11 | 11 | // Where compiled templates should be stored |
@@ -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' => [ |
@@ -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\Exception; |
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\Exception; |
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\Exception; |
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\Renderer; |
9 | 9 |
@@ -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; |