Completed
Push — main ( eaf81d...cfa39a )
by Martin
20s
created
src/Twig/DataToTwigConvertor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public static function nothing(): self
36 36
     {
37
-        return new self(static function (): string {
37
+        return new self(static function(): string {
38 38
             return '';
39 39
         });
40 40
     }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public static function vars(bool $force = true): self
48 48
     {
49
-        return new self(static function (array $data) use ($force): string {
49
+        return new self(static function(array $data) use ($force): string {
50 50
             $content = '';
51 51
             foreach ($data as $key => $value) {
52 52
                 if (is_int($key)) {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public static function var(string $name, bool $force = true): self
72 72
     {
73
-        return new self(static function (array $data) use ($name, $force): string {
73
+        return new self(static function(array $data) use ($name, $force): string {
74 74
             $value = ($force ? '' : "{$name} is defined ? {$name} : ").self::valueToTwig($data);
75 75
 
76 76
             return "{% set {$name} = {$value} %}\n";
Please login to merge, or discard this patch.