Completed
Push — master ( 606ef9...1489ec )
by Steevan
01:51
created
Parser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     {
25 25
         static::registerFunction('file', function($fileName) {
26 26
             if (is_readable($fileName) === false) {
27
-                throw new \Exception('File "' . $fileName . '" not found.');
27
+                throw new \Exception('File "'.$fileName.'" not found.');
28 28
             }
29 29
 
30 30
             return file_get_contents($fileName);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             } elseif (is_string($value) && substr($value, 0, 1) === '<' && substr($value, -1) === '>') {
68 68
                 $functionId = null;
69 69
                 $parameters = [];
70
-                foreach (token_get_all('<?php ' . $value) as $token) {
70
+                foreach (token_get_all('<?php '.$value) as $token) {
71 71
                     if (is_array($token)) {
72 72
                         if ($token[0] === T_STRING && $functionId === null) {
73 73
                             $functionId = $token[1];
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
                 }
83 83
 
84 84
                 if ($functionId === null) {
85
-                    throw new FunctionIdNotFoundException('Function name cannont be found in ' . $value . '.');
85
+                    throw new FunctionIdNotFoundException('Function name cannont be found in '.$value.'.');
86 86
                 } elseif (isset(static::$functions[$functionId]) === false) {
87
-                    throw new FunctionNotFoundException('Function "' . $functionId . '" not found.');
87
+                    throw new FunctionNotFoundException('Function "'.$functionId.'" not found.');
88 88
                 }
89 89
 
90 90
                 $value = call_user_func_array(static::$functions[$functionId], $parameters);
Please login to merge, or discard this patch.