Passed
Push — main ( 7824a5...7704d6 )
by Teodoro
13:35
created
src/Compiler/Parser/Rules.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -20,31 +20,31 @@
 block discarded – undo
20 20
         $compiler = $this->compiler;
21 21
 
22 22
         return [
23
-            '/\{\#(.*)\#\}/Ui' => static function ($matches) {
23
+            '/\{\#(.*)\#\}/Ui' => static function($matches) {
24 24
                 return '<?php /*' . $matches[1] . '*/ ?>';
25 25
             },
26
-            '/\{set\s+(.*)\s*;?\s*\}/Ui' => static function ($matches) {
26
+            '/\{set\s+(.*)\s*;?\s*\}/Ui' => static function($matches) {
27 27
                 return '<?php ' . $matches[1] . '; ?>';
28 28
             },
29
-            '/\{(elseif)\s+(.*)\}/Ui' => static function ($matches) {
29
+            '/\{(elseif)\s+(.*)\}/Ui' => static function($matches) {
30 30
                 return '<?php }' . $matches[1] . '(' . $matches[2] . '){ ?>';
31 31
             },
32
-            '/\{else\/?\}/Ui' => static function () {
32
+            '/\{else\/?\}/Ui' => static function() {
33 33
                 return '<?php }else{ ?>';
34 34
             },
35
-            '/\{dump\s+(.*)\s*;?\s*\}/Ui' => static function ($matches) {
35
+            '/\{dump\s+(.*)\s*;?\s*\}/Ui' => static function($matches) {
36 36
                 return '<?php var_dump(' . $matches[1] . '); ?>';
37 37
             },
38
-            '/\{(foreach|if|for)\s+(.*)\}/Ui' => static function ($matches) {
38
+            '/\{(foreach|if|for)\s+(.*)\}/Ui' => static function($matches) {
39 39
                 return '<?php ' . $matches[1] . '(' . $matches[2] . '){ ?>';
40 40
             },
41
-            '/\{(endforeach|endif|endfor)\}/Ui' => static function ($matches) {
41
+            '/\{(endforeach|endif|endfor)\}/Ui' => static function($matches) {
42 42
                 return '<?php } ?>';
43 43
             },
44
-            '/\{\{\s?(.*)\s*;?\s?\}\}/Ui' => static function ($matches) {
44
+            '/\{\{\s?(.*)\s*;?\s?\}\}/Ui' => static function($matches) {
45 45
                 return '<?php echo ' . $matches[1] . '; ?>';
46 46
             },
47
-            '/\{\s?extends\s*([\w\-_\.\/]*)\}/Ui' => static function ($matches) use ($compiler) {
47
+            '/\{\s?extends\s*([\w\-_\.\/]*)\}/Ui' => static function($matches) use ($compiler) {
48 48
                 $templatePath = $compiler->getTemplatePath()->withFile($matches[1]);
49 49
                 $compilerPath = $compiler->getCompiledPath()->withFile(sprintf('%s.compiled', $matches[1]));
50 50
 
Please login to merge, or discard this patch.