Skip to content

Commit 2f12f8c

Browse files
authored
Rename "indexes" to "indices" (#937)
1 parent 3d8a988 commit 2f12f8c

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/Fixer/PhpUnitAssertArgumentsOrderFixer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ public function fix(\SplFileInfo $file, Tokens $tokens): void
7878
{
7979
$phpUnitTestCaseIndicator = new PhpUnitTestCaseIndicator();
8080

81-
/** @var list<int> $indexes */
82-
foreach ($phpUnitTestCaseIndicator->findPhpUnitClasses($tokens) as $indexes) {
83-
$this->fixArgumentsOrder($tokens, $indexes[0], $indexes[1]);
81+
/** @var array<int> $indices */
82+
foreach ($phpUnitTestCaseIndicator->findPhpUnitClasses($tokens) as $indices) {
83+
$this->fixArgumentsOrder($tokens, $indices[0], $indices[1]);
8484
}
8585
}
8686

src/Fixer/PhpUnitDedicatedAssertFixer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ public function fix(\SplFileInfo $file, Tokens $tokens): void
8484
{
8585
$phpUnitTestCaseIndicator = new PhpUnitTestCaseIndicator();
8686

87-
/** @var list<int> $indexes */
88-
foreach ($phpUnitTestCaseIndicator->findPhpUnitClasses($tokens) as $indexes) {
89-
$this->fixAssertions($tokens, $indexes[0], $indexes[1]);
87+
/** @var list<int> $indices */
88+
foreach ($phpUnitTestCaseIndicator->findPhpUnitClasses($tokens) as $indices) {
89+
$this->fixAssertions($tokens, $indices[0], $indices[1]);
9090
}
9191
}
9292

src/Fixer/PhpUnitNoUselessReturnFixer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ public function fix(\SplFileInfo $file, Tokens $tokens): void
6969
{
7070
$phpUnitTestCaseIndicator = new PhpUnitTestCaseIndicator();
7171

72-
/** @var list<int> $indexes */
73-
foreach ($phpUnitTestCaseIndicator->findPhpUnitClasses($tokens) as $indexes) {
74-
$this->removeUselessReturns($tokens, $indexes[0], $indexes[1]);
72+
/** @var list<int> $indices */
73+
foreach ($phpUnitTestCaseIndicator->findPhpUnitClasses($tokens) as $indices) {
74+
$this->removeUselessReturns($tokens, $indices[0], $indices[1]);
7575
}
7676
}
7777

0 commit comments

Comments
 (0)