-
-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PostRector][CodingStyle] Improve Auto import performance (#1233)
* [PostRector][CodingStyle] Improve Auto import performance * move method call to before loop in NameImporter importNameAndCollectNewUseStatement * move get short name before loop on AliasClassNameImportSkipVoter * move get short name before loop on FullyQualifiedNameClassNameImportSkipVoter * reduce long variable * [ci-review] Rector Rectify * call on return is ok to direct method call * reduce repetitive call getClassName * move early check File and shouldApply * debug * alias of namespace never has backslash, return early when classname has backslash * fix * class has backslash, no need to search in aliases, mark aliasedUses as empty * early return when aliasedUses is empty * get real path can be from File object * move variable to near declaration * reuse variable * phpstan Co-authored-by: GitHub Action <[email protected]>
- Loading branch information
1 parent
8046b81
commit 62f2c30
Showing
7 changed files
with
51 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters