Passed
Pull Request — master (#4)
by
unknown
10:47
created
src/Twig/Base64ImageExtension.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     public function getFilters(): array
30 30
     {
31 31
         return [
32
-          new TwigFilter('image64', [$this, 'createBase64Image']),
32
+            new TwigFilter('image64', [$this, 'createBase64Image']),
33 33
         ];
34 34
     }
35 35
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@
 block discarded – undo
23 23
     public function getFilters(): array
24 24
     {
25 25
         return [
26
-          new TwigFilter('image64', [$this, 'createBase64Image']),
26
+          new TwigFilter('image64', [ $this, 'createBase64Image' ]),
27 27
         ];
28 28
     }
29 29
 
30 30
     public function createBase64Image(string $image): string
31 31
     {
32
-        return $this->fileConverter->convert($_SERVER['DOCUMENT_ROOT'] . $image);
32
+        return $this->fileConverter->convert($_SERVER[ 'DOCUMENT_ROOT' ] . $image);
33 33
     }
34 34
 }
Please login to merge, or discard this patch.