Completed
Push — master ( d66f03...7d4ed7 )
by Steevan
03:12 queued 10s
created
Parser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
     {
26 26
         static::registerFunction('file', function($fileName) use ($path) {
27 27
             $path = $path === null ? __DIR__ : rtrim($path, DIRECTORY_SEPARATOR);
28
-            $filePath = $fileName[0] === DIRECTORY_SEPARATOR ? $fileName : $path . DIRECTORY_SEPARATOR . $fileName;
28
+            $filePath = $fileName[0] === DIRECTORY_SEPARATOR ? $fileName : $path.DIRECTORY_SEPARATOR.$fileName;
29 29
             if (is_readable($filePath) === false) {
30
-                throw new \Exception('File "' . $filePath . '" not found.');
30
+                throw new \Exception('File "'.$filePath.'" not found.');
31 31
             }
32 32
 
33 33
             return file_get_contents($filePath);
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             } elseif (is_string($value) && substr($value, 0, 1) === '<' && substr($value, -1) === '>') {
71 71
                 $functionId = null;
72 72
                 $parameters = [];
73
-                foreach (token_get_all('<?php ' . $value) as $token) {
73
+                foreach (token_get_all('<?php '.$value) as $token) {
74 74
                     if (is_array($token)) {
75 75
                         if ($token[0] === T_STRING && $functionId === null) {
76 76
                             $functionId = $token[1];
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
85 85
                 }
86 86
 
87 87
                 if ($functionId === null) {
88
-                    throw new FunctionIdNotFoundException('Function name cannont be found in ' . $value . '.');
88
+                    throw new FunctionIdNotFoundException('Function name cannont be found in '.$value.'.');
89 89
                 } elseif (isset(static::$functions[$functionId]) === false) {
90
-                    throw new FunctionNotFoundException('Function "' . $functionId . '" not found.');
90
+                    throw new FunctionNotFoundException('Function "'.$functionId.'" not found.');
91 91
                 }
92 92
 
93 93
                 $value = call_user_func_array(static::$functions[$functionId], $parameters);
Please login to merge, or discard this patch.