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:
2929 - src/Types/Static_.php
3030 - src/Types/String_.php
3131 - 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)
224224 $ groupedNs = '' ;
225225 $ currentNs = '' ;
226226 $ currentAlias = null ;
227- $ state = " start " ;
227+ $ state = ' start ' ;
228228
229229 $ i = 0 ;
230230 while ($ tokens ->valid ()) {
@@ -233,7 +233,7 @@ private function extractUseStatements(\ArrayIterator $tokens)
233233 $ tokenId = is_string ($ currentToken ) ? $ currentToken : $ currentToken [0 ];
234234 $ tokenValue = is_string ($ currentToken ) ? null : $ currentToken [1 ];
235235 switch ($ state ) {
236- case " start " :
236+ case ' start ' :
237237 switch ($ tokenId ) {
238238 case T_STRING :
239239 case T_NS_SEPARATOR :
@@ -255,7 +255,7 @@ private function extractUseStatements(\ArrayIterator $tokens)
255255 break ;
256256 }
257257 break ;
258- case " start-alias " :
258+ case ' start-alias ' :
259259 switch ($ tokenId ) {
260260 case T_STRING :
261261 $ currentAlias .= $ tokenValue ;
@@ -268,7 +268,7 @@ private function extractUseStatements(\ArrayIterator $tokens)
268268 break ;
269269 }
270270 break ;
271- case " grouped " :
271+ case ' grouped ' :
272272 switch ($ tokenId ) {
273273 case T_STRING :
274274 case T_NS_SEPARATOR :
@@ -290,7 +290,7 @@ private function extractUseStatements(\ArrayIterator $tokens)
290290 break ;
291291 }
292292 break ;
293- case " grouped-alias " :
293+ case ' grouped-alias ' :
294294 switch ($ tokenId ) {
295295 case T_STRING :
296296 $ currentAlias .= $ tokenValue ;
@@ -309,18 +309,17 @@ private function extractUseStatements(\ArrayIterator $tokens)
309309 }
310310 }
311311
312- if ($ state == " end " ) {
312+ if ($ state === ' end ' ) {
313313 break ;
314314 }
315315
316316 $ tokens ->next ();
317317 }
318318
319- if ($ groupedNs != $ currentNs ) {
319+ if ($ groupedNs !== $ currentNs ) {
320320 $ extractedUseStatements [$ currentAlias ?: $ currentNs ] = $ currentNs ;
321321 }
322322
323-
324323 return $ extractedUseStatements ;
325324 }
326325}
You can’t perform that action at this time.
0 commit comments