@@ -23,7 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * @inheritdoc |
25 | 25 | */ |
26 | - public function render($template_pathname, $thisArg, array $variables, array $options = []) |
|
26 | + public function render($template_pathname, $thisArg, array $variables, array $options = [ ]) |
|
27 | 27 | { |
28 | 28 | $template = file_get_contents($template_pathname); |
29 | 29 | $patron = \Patron\get_patron(); |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace Patron\RenderSupport; |
4 | 4 | |
5 | -$hooks = Hooks::class . '::'; |
|
5 | +$hooks = Hooks::class.'::'; |
|
6 | 6 | |
7 | 7 | return [ |
8 | 8 | |
9 | 9 | 'patron.markups' => [ |
10 | 10 | |
11 | - 'render' => [ $hooks . 'markup_render', [ |
|
11 | + 'render' => [ $hooks.'markup_render', [ |
|
12 | 12 | |
13 | 13 | 'select' => [ 'expression' => true ] |
14 | 14 |
@@ -4,10 +4,10 @@ |
||
4 | 4 | |
5 | 5 | use ICanBoogie; |
6 | 6 | |
7 | -$hooks = Hooks::class . '::'; |
|
7 | +$hooks = Hooks::class.'::'; |
|
8 | 8 | |
9 | 9 | return [ |
10 | 10 | |
11 | - ICanBoogie\Render\EngineCollection::class . '::alter' => $hooks . 'on_alter_engine_collection' |
|
11 | + ICanBoogie\Render\EngineCollection::class.'::alter' => $hooks.'on_alter_engine_collection' |
|
12 | 12 | |
13 | 13 | ]; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | */ |
29 | 29 | static public function on_alter_engine_collection(EngineCollection\AlterEvent $event, EngineCollection $target) |
30 | 30 | { |
31 | - $target['.patron'] = __NAMESPACE__ . '\PatronEngine'; |
|
31 | + $target[ '.patron' ] = __NAMESPACE__.'\PatronEngine'; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | /* |
@@ -37,8 +37,8 @@ discard block |
||
37 | 37 | |
38 | 38 | static public function markup_render(array $args, $engine, $template) |
39 | 39 | { |
40 | - $thisArg = $args['select']; |
|
41 | - unset($args['select']); |
|
40 | + $thisArg = $args[ 'select' ]; |
|
41 | + unset($args[ 'select' ]); |
|
42 | 42 | |
43 | 43 | if (is_array($thisArg)) |
44 | 44 | { |