1 | <?php |
||
18 | class WhiteSpace |
||
19 | { |
||
20 | /** |
||
21 | * @param $token |
||
22 | * |
||
23 | * @return bool |
||
24 | */ |
||
25 | public static function tokenHasExtraWhiteSpaceLeft($token) |
||
32 | |||
33 | /** |
||
34 | * @param $token |
||
35 | * |
||
36 | * @return bool |
||
37 | */ |
||
38 | public static function tokenHasExtraWhiteSpaceRight($token) |
||
44 | |||
45 | /** |
||
46 | * @param $tokenType |
||
47 | * |
||
48 | * @return bool |
||
49 | */ |
||
50 | public static function tokenIsNumberAndHasExtraWhiteSpaceRight($tokenType) |
||
58 | |||
59 | /** |
||
60 | * @param $token |
||
61 | * |
||
62 | * @return bool |
||
63 | */ |
||
64 | public static function tokenHasExtraWhiteSpaces($token) |
||
70 | |||
71 | /** |
||
72 | * @param $originalTokens |
||
73 | * @param $token |
||
74 | * |
||
75 | * @return bool |
||
76 | */ |
||
77 | public static function isPrecedingCurrentTokenOfTokenTypeWhiteSpace($originalTokens, $token) |
||
82 | |||
83 | /** |
||
84 | * @param $originalTokens |
||
85 | * |
||
86 | * @return array |
||
87 | */ |
||
88 | public static function removeTokenWhitespace(array &$originalTokens) |
||
100 | } |
||
101 |