Passed
Push — v4 ( 2a2027...7d2891 )
by Andrew
17:31 queued 14s
created
src/web/twig/nodes/CommentBlockNode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@
 block discarded – undo
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");
Please login to merge, or discard this patch.
ecs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/web/twig/TemplateCommentsParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -347,7 +347,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/web/twig/CommentTemplateLoader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,10 +33,10 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/helpers/Reflection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         }
53 53
 
54 54
         if (!$reflectionProperty) {
55
-            throw new ReflectionException("Property not found: " . $propertyName);
55
+            throw new ReflectionException("Property not found: ".$propertyName);
56 56
         }
57 57
 
58 58
         return $reflectionProperty;
Please login to merge, or discard this patch.