File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -29,3 +29,9 @@ parameters:
29
29
- src/Types/Static_.php
30
30
- src/Types/String_.php
31
31
- src/Types/Void_.php
32
+ PhpCsFixer\Fixer\Import\OrderedImportsFixer :
33
+ - *tests/unit/Types/ContextFactoryTest.php
34
+ PhpCsFixer\Fixer\Import\SingleImportPerStatementFixer :
35
+ - *tests/unit/Types/ContextFactoryTest.php
36
+ PhpCsFixer\Fixer\Import\SingleLineAfterImportsFixer :
37
+ - *tests/unit/Types/ContextFactoryTest.php
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ private function extractUseStatements(\ArrayIterator $tokens)
224
224
$ groupedNs = '' ;
225
225
$ currentNs = '' ;
226
226
$ currentAlias = null ;
227
- $ state = " start " ;
227
+ $ state = ' start ' ;
228
228
229
229
$ i = 0 ;
230
230
while ($ tokens ->valid ()) {
@@ -233,7 +233,7 @@ private function extractUseStatements(\ArrayIterator $tokens)
233
233
$ tokenId = is_string ($ currentToken ) ? $ currentToken : $ currentToken [0 ];
234
234
$ tokenValue = is_string ($ currentToken ) ? null : $ currentToken [1 ];
235
235
switch ($ state ) {
236
- case " start " :
236
+ case ' start ' :
237
237
switch ($ tokenId ) {
238
238
case T_STRING :
239
239
case T_NS_SEPARATOR :
@@ -255,7 +255,7 @@ private function extractUseStatements(\ArrayIterator $tokens)
255
255
break ;
256
256
}
257
257
break ;
258
- case " start-alias " :
258
+ case ' start-alias ' :
259
259
switch ($ tokenId ) {
260
260
case T_STRING :
261
261
$ currentAlias .= $ tokenValue ;
@@ -268,7 +268,7 @@ private function extractUseStatements(\ArrayIterator $tokens)
268
268
break ;
269
269
}
270
270
break ;
271
- case " grouped " :
271
+ case ' grouped ' :
272
272
switch ($ tokenId ) {
273
273
case T_STRING :
274
274
case T_NS_SEPARATOR :
@@ -290,7 +290,7 @@ private function extractUseStatements(\ArrayIterator $tokens)
290
290
break ;
291
291
}
292
292
break ;
293
- case " grouped-alias " :
293
+ case ' grouped-alias ' :
294
294
switch ($ tokenId ) {
295
295
case T_STRING :
296
296
$ currentAlias .= $ tokenValue ;
@@ -309,18 +309,17 @@ private function extractUseStatements(\ArrayIterator $tokens)
309
309
}
310
310
}
311
311
312
- if ($ state == " end " ) {
312
+ if ($ state === ' end ' ) {
313
313
break ;
314
314
}
315
315
316
316
$ tokens ->next ();
317
317
}
318
318
319
- if ($ groupedNs != $ currentNs ) {
319
+ if ($ groupedNs !== $ currentNs ) {
320
320
$ extractedUseStatements [$ currentAlias ?: $ currentNs ] = $ currentNs ;
321
321
}
322
322
323
-
324
323
return $ extractedUseStatements ;
325
324
}
326
325
}
You can’t perform that action at this time.
0 commit comments