@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | } elseif (is_string($value) && substr($value, 0, 1) === '<' && substr($value, -1) === '>') { |
| 64 | 64 | $functionId = null; |
| 65 | 65 | $parameters = []; |
| 66 | - foreach (token_get_all('<?php ' . $value) as $token) { |
|
| 66 | + foreach (token_get_all('<?php '.$value) as $token) { |
|
| 67 | 67 | if (is_array($token)) { |
| 68 | 68 | if ($token[0] === T_STRING && $functionId === null) { |
| 69 | 69 | $functionId = $token[1]; |
@@ -78,9 +78,9 @@ discard block |
||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | if ($functionId === null) { |
| 81 | - throw new FunctionIdNotFoundException('Function name cannont be found in ' . $value . '.'); |
|
| 81 | + throw new FunctionIdNotFoundException('Function name cannont be found in '.$value.'.'); |
|
| 82 | 82 | } elseif (isset(static::$functions[$functionId]) === false) { |
| 83 | - throw new FunctionNotFoundException('Function "' . $functionId . '" not found.'); |
|
| 83 | + throw new FunctionNotFoundException('Function "'.$functionId.'" not found.'); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | $value = call_user_func_array(static::$functions[$functionId], $parameters); |