Passed
Pull Request — master (#1191)
by butschster
10:33
created
src/Stempler/src/Transform/Import/Directory.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,8 @@
 block discarded – undo
30 30
     public function resolve(Builder $builder, string $name): ?Template
31 31
     {
32 32
         $path = \substr($name, \strlen((string) $this->prefix) + 1);
33
-        if ($path === '') {
33
+        if ($path === '')
34
+        {
34 35
             return null;
35 36
         }
36 37
 
Please login to merge, or discard this patch.
src/Stempler/src/Transform/Import/Bundle.php 1 patch
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,23 +29,28 @@
 block discarded – undo
29 29
 
30 30
     public function resolve(Builder $builder, string $name): ?Template
31 31
     {
32
-        if ($this->template === null) {
32
+        if ($this->template === null)
33
+        {
33 34
             $this->template = $builder->load($this->path);
34 35
         }
35 36
 
36 37
         $path = $name;
37
-        if ($this->prefix !== null) {
38
+        if ($this->prefix !== null)
39
+        {
38 40
             $path = \substr($path, \strlen($this->prefix) + 1);
39 41
         }
40 42
 
41
-        if ($path === '') {
43
+        if ($path === '')
44
+        {
42 45
             return null;
43 46
         }
44 47
 
45 48
         /** @var ImportInterface $import */
46
-        foreach ($this->template->getAttribute(ImportContext::class, []) as $import) {
49
+        foreach ($this->template->getAttribute(ImportContext::class, []) as $import)
50
+        {
47 51
             $tpl = $import->resolve($builder, $path);
48
-            if ($tpl !== null) {
52
+            if ($tpl !== null)
53
+            {
49 54
                 return $tpl;
50 55
             }
51 56
         }
Please login to merge, or discard this patch.
src/Stempler/src/Node/Template.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,8 @@
 block discarded – undo
24 24
      */
25 25
     public function __construct(
26 26
         public array $nodes = [],
27
-    ) {}
27
+    ) {
28
+}
28 29
 
29 30
     public function setContext(?Context $context = null): void
30 31
     {
Please login to merge, or discard this patch.