Skip to content

Commit d8a1367

Browse files
committed
Rename method
1 parent 37b811e commit d8a1367

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Fixer/Import/NoUnusedImportsFixer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function (NamespaceUseAnalysis $useDeclaration) use ($namespace) {
105105
}
106106

107107
foreach ($currentNamespaceUseDeclarations as $useDeclaration) {
108-
if (!$this->importIsUsed($tokens, $namespace, $usagesSearchIgnoredIndexes, $useDeclaration->getShortName())) {
108+
if (!$this->isImportUsed($tokens, $namespace, $usagesSearchIgnoredIndexes, $useDeclaration->getShortName())) {
109109
$this->removeUseDeclaration($tokens, $useDeclaration);
110110
}
111111
}
@@ -122,7 +122,7 @@ function (NamespaceUseAnalysis $useDeclaration) use ($namespace) {
122122
*
123123
* @return bool
124124
*/
125-
private function importIsUsed(Tokens $tokens, NamespaceAnalysis $namespace, array $ignoredIndexes, $shortName)
125+
private function isImportUsed(Tokens $tokens, NamespaceAnalysis $namespace, array $ignoredIndexes, $shortName)
126126
{
127127
$namespaceEndIndex = $namespace->getScopeEndIndex();
128128
for ($index = $namespace->getScopeStartIndex(); $index <= $namespaceEndIndex; ++$index) {

0 commit comments

Comments
 (0)