@@ -40,10 +40,10 @@ |
||
| 40 | 40 | ->write('$_blockTimer = microtime(true)') |
| 41 | 41 | ->raw(";\n") |
| 42 | 42 | ->write('$_templateName = ') |
| 43 | - ->write("'" . $this->getTemplateName() . "'") |
|
| 43 | + ->write("'".$this->getTemplateName()."'") |
|
| 44 | 44 | ->raw(";\n") |
| 45 | 45 | ->write('$_blockName = ') |
| 46 | - ->write("'" . $this->blockName . "'") |
|
| 46 | + ->write("'".$this->blockName."'") |
|
| 47 | 47 | ->raw(";\n") |
| 48 | 48 | ->write('echo PHP_EOL."<!-- >>> BLOCK BEGIN >>> ".$_blockName." FROM ".$_templateName." -->".PHP_EOL') |
| 49 | 49 | ->raw(";\n"); |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | |
| 6 | 6 | return static function(ECSConfig $ecsConfig): void { |
| 7 | 7 | $ecsConfig->paths([ |
| 8 | - __DIR__ . '/src', |
|
| 8 | + __DIR__.'/src', |
|
| 9 | 9 | __FILE__, |
| 10 | 10 | ]); |
| 11 | 11 | $ecsConfig->parallel(); |
@@ -347,7 +347,7 @@ |
||
| 347 | 347 | ($node instanceof TextNode && !ctype_space($node->getAttribute('data'))) |
| 348 | 348 | || (!$node instanceof TextNode && !$node instanceof BlockReferenceNode && $node instanceof NodeOutputInterface) |
| 349 | 349 | ) { |
| 350 | - if (str_contains((string)$node, chr(0xEF) . chr(0xBB) . chr(0xBF))) { |
|
| 350 | + if (str_contains((string) $node, chr(0xEF).chr(0xBB).chr(0xBF))) { |
|
| 351 | 351 | $t = substr($node->getAttribute('data'), 3); |
| 352 | 352 | if ('' === $t || ctype_space($t)) { |
| 353 | 353 | // bypass empty nodes starting with a BOM |
@@ -33,10 +33,10 @@ |
||
| 33 | 33 | throw new TemplateLoaderException($name, Craft::t('app', 'Tried to read the template at {path}, but could not. Check the permissions.', ['path' => $template])); |
| 34 | 34 | } |
| 35 | 35 | $escapedName = addslashes($name); |
| 36 | - $prefix = "{% comments '{$escapedName}' %}" . PHP_EOL; |
|
| 37 | - $suffix = PHP_EOL . "{% endcomments %}"; |
|
| 36 | + $prefix = "{% comments '{$escapedName}' %}".PHP_EOL; |
|
| 37 | + $suffix = PHP_EOL."{% endcomments %}"; |
|
| 38 | 38 | |
| 39 | - return new Source($prefix . file_get_contents($template) . $suffix, $name, $template); |
|
| 39 | + return new Source($prefix.file_get_contents($template).$suffix, $name, $template); |
|
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | // Private Methods |