@@ -11,7 +11,7 @@ |
||
| 11 | 11 | |
| 12 | 12 | class RenderConditionsExtension extends AbstractExtension |
| 13 | 13 | { |
| 14 | - public function register(View|Engine $engine) |
|
| 14 | + public function register(View | Engine $engine) |
|
| 15 | 15 | { |
| 16 | 16 | parent::register($engine); |
| 17 | 17 | $engine->addMethod('loadIfExists', [$this, 'loadIfExists']); |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | if (false === $this->hasHelper($name)) { |
| 55 | 55 | return; |
| 56 | 56 | } |
| 57 | - $this->registerFunction($name, function () use ($name) { |
|
| 57 | + $this->registerFunction($name, function() use ($name) { |
|
| 58 | 58 | return $this->getHelper($name); |
| 59 | 59 | }); |
| 60 | 60 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | } |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - return '\Nip\Helpers\View\\' . $name; |
|
| 43 | + return '\Nip\Helpers\View\\'.$name; |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | public static function getHelperClassVariations($name) |
| 52 | 52 | { |
| 53 | 53 | return [ |
| 54 | - '\Nip\View\Helpers\\' . $name . 'Helper', |
|
| 54 | + '\Nip\View\Helpers\\'.$name.'Helper', |
|
| 55 | 55 | ]; |
| 56 | 56 | } |
| 57 | 57 | } |