File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -119,20 +119,6 @@ private function tokenize($source)
119
119
foreach ($ tokens as $ token ) {
120
120
if (is_array ($ token )) {
121
121
switch ($ token [0 ]) {
122
- case T_INLINE_HTML :
123
- $ newType = self ::TOKEN_HTML ;
124
- break ;
125
-
126
- case T_COMMENT :
127
- case T_DOC_COMMENT :
128
- $ newType = self ::TOKEN_COMMENT ;
129
- break ;
130
-
131
- case T_ENCAPSED_AND_WHITESPACE :
132
- case T_CONSTANT_ENCAPSED_STRING :
133
- $ newType = self ::TOKEN_STRING ;
134
- break ;
135
-
136
122
case T_WHITESPACE :
137
123
break ;
138
124
@@ -156,6 +142,20 @@ private function tokenize($source)
156
142
$ newType = self ::TOKEN_DEFAULT ;
157
143
break ;
158
144
145
+ case T_COMMENT :
146
+ case T_DOC_COMMENT :
147
+ $ newType = self ::TOKEN_COMMENT ;
148
+ break ;
149
+
150
+ case T_ENCAPSED_AND_WHITESPACE :
151
+ case T_CONSTANT_ENCAPSED_STRING :
152
+ $ newType = self ::TOKEN_STRING ;
153
+ break ;
154
+
155
+ case T_INLINE_HTML :
156
+ $ newType = self ::TOKEN_HTML ;
157
+ break ;
158
+
159
159
default :
160
160
$ newType = self ::TOKEN_KEYWORD ;
161
161
}
@@ -167,7 +167,7 @@ private function tokenize($source)
167
167
$ currentType = $ newType ;
168
168
}
169
169
170
- if ($ currentType != $ newType ) {
170
+ if ($ currentType !== $ newType ) {
171
171
$ output [] = array ($ currentType , $ buffer );
172
172
$ buffer = '' ;
173
173
$ currentType = $ newType ;
You can’t perform that action at this time.
0 commit comments