|
@@ 1283-1285 (lines=3) @@
|
| 1280 |
|
} |
| 1281 |
|
|
| 1282 |
|
// If the token shouldn't have a space before it |
| 1283 |
|
if ($token[self::TOKEN_VALUE] === '.' || $token[self::TOKEN_VALUE] === ',' || $token[self::TOKEN_VALUE] === ';') { |
| 1284 |
|
$return = rtrim($return, ' '); |
| 1285 |
|
} |
| 1286 |
|
|
| 1287 |
|
$return .= $highlighted . ' '; |
| 1288 |
|
|
|
@@ 1290-1292 (lines=3) @@
|
| 1287 |
|
$return .= $highlighted . ' '; |
| 1288 |
|
|
| 1289 |
|
// If the token shouldn't have a space after it |
| 1290 |
|
if ($token[self::TOKEN_VALUE] === '(' || $token[self::TOKEN_VALUE] === '.') { |
| 1291 |
|
$return = rtrim($return, ' '); |
| 1292 |
|
} |
| 1293 |
|
|
| 1294 |
|
// If this is the "-" of a negative number, it shouldn't have a space after it |
| 1295 |
|
if ($token[self::TOKEN_VALUE] === '-' && isset($tokens[$i + 1]) && $tokens[$i + 1][self::TOKEN_TYPE] === self::TOKEN_TYPE_NUMBER && isset($tokens[$i - 1])) { |