@@ -38,6 +38,6 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public static function compile(Compiler $compiler, $value) |
| 40 | 40 | { |
| 41 | - return 'mb_strtoupper((string) ' . $value . ', $this->charset)'; |
|
| 41 | + return 'mb_strtoupper((string) '.$value.', $this->charset)'; |
|
| 42 | 42 | } |
| 43 | 43 | } |
| 44 | 44 | \ No newline at end of file |
@@ -41,6 +41,6 @@ |
||
| 41 | 41 | */ |
| 42 | 42 | public static function compile(Compiler $compiler, $value, $var) |
| 43 | 43 | { |
| 44 | - return '$this->assignInScope(' . $value . ', ' . $var . ')'; |
|
| 44 | + return '$this->assignInScope('.$value.', '.$var.')'; |
|
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | 47 | \ No newline at end of file |
@@ -38,6 +38,6 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public static function compile(Compiler $compiler, $value) |
| 40 | 40 | { |
| 41 | - return 'mb_strtolower((string) ' . $value . ', $this->charset)'; |
|
| 41 | + return 'mb_strtolower((string) '.$value.', $this->charset)'; |
|
| 42 | 42 | } |
| 43 | 43 | } |
| 44 | 44 | \ No newline at end of file |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | break 2; |
| 57 | 57 | } |
| 58 | 58 | } |
| 59 | - $this->core->triggerError('The security policy prevents you to read <em>' . $file . '</em>', |
|
| 59 | + $this->core->triggerError('The security policy prevents you to read <em>'.$file.'</em>', |
|
| 60 | 60 | E_USER_WARNING); |
| 61 | 61 | } |
| 62 | 62 | } |
@@ -44,6 +44,6 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | public static function compile(Compiler $compiler, $value, $length = 80, $break = "\n", $cut = false) |
| 46 | 46 | { |
| 47 | - return 'wordwrap(' . $value . ',' . $length . ',' . $break . ',' . $cut . ')'; |
|
| 47 | + return 'wordwrap('.$value.','.$length.','.$break.','.$cut.')'; |
|
| 48 | 48 | } |
| 49 | 49 | } |
| 50 | 50 | \ No newline at end of file |
@@ -43,10 +43,10 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | public static function compile(Compiler $compiler, $value, $search, $replace, $case_sensitive = true) |
| 45 | 45 | { |
| 46 | - if ($case_sensitive == 'false' || (bool)$case_sensitive === false) { |
|
| 47 | - return 'str_ireplace(' . $search . ', ' . $replace . ', ' . $value . ')'; |
|
| 46 | + if ($case_sensitive == 'false' || (bool) $case_sensitive === false) { |
|
| 47 | + return 'str_ireplace('.$search.', '.$replace.', '.$value.')'; |
|
| 48 | 48 | } else { |
| 49 | - return 'str_replace(' . $search . ', ' . $replace . ', ' . $value . ')'; |
|
| 49 | + return 'str_replace('.$search.', '.$replace.', '.$value.')'; |
|
| 50 | 50 | } |
| 51 | 51 | } |
| 52 | 52 | } |
| 53 | 53 | \ No newline at end of file |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function process($value, $search, $replace) |
| 41 | 41 | { |
| 42 | - $search = (array)$search; |
|
| 42 | + $search = (array) $search; |
|
| 43 | 43 | $cnt = count($search); |
| 44 | 44 | |
| 45 | 45 | for ($i = 0; $i < $cnt; ++ $i) { |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | if (preg_match('#[a-z\s]+$#is', $search[$i], $m) && (strpos($m[0], 'e') !== false)) { |
| 52 | - $search[$i] = substr($search[$i], 0, - strlen($m[0])) . str_replace(array( |
|
| 52 | + $search[$i] = substr($search[$i], 0, - strlen($m[0])).str_replace(array( |
|
| 53 | 53 | 'e', |
| 54 | 54 | ' ' |
| 55 | 55 | ), |
@@ -40,6 +40,6 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | public static function compile(Compiler $compiler, $value, $format) |
| 42 | 42 | { |
| 43 | - return 'sprintf(' . $format . ',' . $value . ')'; |
|
| 43 | + return 'sprintf('.$format.','.$value.')'; |
|
| 44 | 44 | } |
| 45 | 45 | } |
| 46 | 46 | \ No newline at end of file |
@@ -38,6 +38,6 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public static function compile(Compiler $compiler, $value) |
| 40 | 40 | { |
| 41 | - return '(preg_match_all(\'#[\r\n]+#\', ' . $value . ', $tmp)+1)'; |
|
| 41 | + return '(preg_match_all(\'#[\r\n]+#\', '.$value.', $tmp)+1)'; |
|
| 42 | 42 | } |
| 43 | 43 | } |
| 44 | 44 | \ No newline at end of file |