@@ -35,7 +35,7 @@ |
||
| 35 | 35 | { |
| 36 | 36 | $previous = $this->features[$feature]; |
| 37 | 37 | if (is_bool($state) || is_numeric($state) || is_null($state)) { |
| 38 | - $this->features[$feature] = (bool)$state; |
|
| 38 | + $this->features[$feature] = (bool) $state; |
|
| 39 | 39 | } elseif (is_string($state)) { |
| 40 | 40 | $this->features[$feature] = in_array(strtolower($state), ['on', 'true', 'enabled'], true); |
| 41 | 41 | } |
@@ -223,7 +223,7 @@ |
||
| 223 | 223 | try { |
| 224 | 224 | $parsedPartial = $renderingContext->getTemplateParser()->getOrParseAndStoreTemplate( |
| 225 | 225 | $templatePaths->getPartialIdentifier($partialName), |
| 226 | - function (RenderingContextInterface $renderingContext) use ($partialName): string { |
|
| 226 | + function(RenderingContextInterface $renderingContext) use ($partialName): string { |
|
| 227 | 227 | return $renderingContext->getTemplatePaths()->getPartialSource($partialName); |
| 228 | 228 | } |
| 229 | 229 | ); |
@@ -81,12 +81,12 @@ |
||
| 81 | 81 | $argumentName = $this->resolveContentArgumentName(); |
| 82 | 82 | $arguments = $this->arguments ?? []; |
| 83 | 83 | if (!empty($argumentName) && isset($arguments[$argumentName])) { |
| 84 | - $renderChildrenClosure = function () use ($arguments, $argumentName) { |
|
| 84 | + $renderChildrenClosure = function() use ($arguments, $argumentName) { |
|
| 85 | 85 | return $arguments[$argumentName]; |
| 86 | 86 | }; |
| 87 | 87 | } else { |
| 88 | 88 | $self = clone $this; |
| 89 | - $renderChildrenClosure = function () use ($self) { |
|
| 89 | + $renderChildrenClosure = function() use ($self) { |
|
| 90 | 90 | return $self->renderChildren(); |
| 91 | 91 | }; |
| 92 | 92 | } |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | { |
| 81 | 81 | $this->ignoreEmptyAttributes = $ignoreEmptyAttributes; |
| 82 | 82 | if ($ignoreEmptyAttributes) { |
| 83 | - $this->attributes = array_filter($this->attributes, function ($item): bool { return trim((string) $item) !== ''; }); |
|
| 83 | + $this->attributes = array_filter($this->attributes, function($item): bool { return trim((string) $item) !== ''; }); |
|
| 84 | 84 | } |
| 85 | 85 | } |
| 86 | 86 | |
@@ -153,7 +153,7 @@ |
||
| 153 | 153 | protected function buildRenderChildrenClosure() |
| 154 | 154 | { |
| 155 | 155 | $self = clone $this; |
| 156 | - $renderChildrenClosure = function () use ($self) { |
|
| 156 | + $renderChildrenClosure = function() use ($self) { |
|
| 157 | 157 | return $self->renderChildren(); |
| 158 | 158 | }; |
| 159 | 159 | return $renderChildrenClosure; |