@@ -71,7 +71,7 @@ |
||
| 71 | 71 | |
| 72 | 72 | public static function fixLine() |
| 73 | 73 | { |
| 74 | - return function ($line) { |
|
| 74 | + return function($line) { |
|
| 75 | 75 | if (substr($line, 0, 3) == '<v ') { |
| 76 | 76 | $line = substr($line, 3); |
| 77 | 77 | $line = str_replace('>', ' ', $line); |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | 'end' => $end, |
| 92 | 92 | 'lines' => is_array($text) ? $text : [$text], |
| 93 | 93 | ]; |
| 94 | - usort($this->internal_format, function ($item1, $item2) { |
|
| 94 | + usort($this->internal_format, function($item1, $item2) { |
|
| 95 | 95 | // return $item2['start'] <=> $item1['start']; // from PHP 7 |
| 96 | 96 | if ($item2['start'] == $item1['start']) { |
| 97 | 97 | return 0; |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | |
| 224 | 224 | public static function removeUtf8Bom($text) |
| 225 | 225 | { |
| 226 | - $bom = pack('H*','EFBBBF'); |
|
| 226 | + $bom = pack('H*', 'EFBBBF'); |
|
| 227 | 227 | $text = preg_replace("/^$bom/", '', $text); |
| 228 | 228 | |
| 229 | 229 | return $text; |