|
@@ 1238-1242 (lines=5) @@
|
| 1235 |
|
} |
| 1236 |
|
|
| 1237 |
|
// If the token may have extra whitespace |
| 1238 |
|
if (strpos($token[self::TOKEN_VALUE], ' ') !== false || strpos($token[self::TOKEN_VALUE], |
| 1239 |
|
"\n") !== false || strpos($token[self::TOKEN_VALUE], "\t") !== false |
| 1240 |
|
) { |
| 1241 |
|
$highlighted = preg_replace('/\s+/', ' ', $highlighted); |
| 1242 |
|
} |
| 1243 |
|
//if SQL 'LIMIT' clause, start variable to reset newline |
| 1244 |
|
if ($token[self::TOKEN_VALUE] === 'LIMIT' && !$inline_parentheses) { |
| 1245 |
|
$clause_limit = true; |
|
@@ 1268-1272 (lines=5) @@
|
| 1265 |
|
} |
| 1266 |
|
|
| 1267 |
|
// If the token may have extra whitespace |
| 1268 |
|
if (strpos($token[self::TOKEN_VALUE], ' ') !== false || strpos($token[self::TOKEN_VALUE], |
| 1269 |
|
"\n") !== false || strpos($token[self::TOKEN_VALUE], "\t") !== false |
| 1270 |
|
) { |
| 1271 |
|
$highlighted = preg_replace('/\s+/', ' ', $highlighted); |
| 1272 |
|
} |
| 1273 |
|
} // Multiple boundary characters in a row should not have spaces between them (not including parentheses) |
| 1274 |
|
elseif ($token[self::TOKEN_TYPE] === self::TOKEN_TYPE_BOUNDARY) { |
| 1275 |
|
if (isset($tokens[$i - 1]) && $tokens[$i - 1][self::TOKEN_TYPE] === self::TOKEN_TYPE_BOUNDARY) { |