Skip to content

Commit d29d5ba

Browse files
authored
Fix function spelling (#67)
* Fix spelling * Drop isPreceededByFuncCall
1 parent 48ebe24 commit d29d5ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Fixer/Spacing/MethodChainingNewlineFixer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ private function isDoubleBracket(Tokens $tokens, int $position): bool
119119
*
120120
* @param Tokens<Token> $tokens
121121
*/
122-
private function isPreceededByOpenedCallInAnotherBracket(Tokens $tokens, int $position): bool
122+
private function isPrecededByOpenedCallInAnotherBracket(Tokens $tokens, int $position): bool
123123
{
124124
$blockInfo = $this->blockFinder->findInTokensByEdge($tokens, $position);
125125
if (! $blockInfo instanceof BlockInfo) {
@@ -142,11 +142,11 @@ private function shouldBracketPrefix(Tokens $tokens, int $position, int $objectO
142142
return false;
143143
}
144144

145-
if ($this->chainMethodCallAnalyzer->isPreceededByFuncCall($tokens, $position)) {
145+
if ($this->chainMethodCallAnalyzer->isPrecededByFuncCall($tokens, $position)) {
146146
return false;
147147
}
148148

149-
if ($this->isPreceededByOpenedCallInAnotherBracket($tokens, $position)) {
149+
if ($this->isPrecededByOpenedCallInAnotherBracket($tokens, $position)) {
150150
return false;
151151
}
152152

src/TokenAnalyzer/ChainMethodCallAnalyzer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function __construct(
2222
*
2323
* @param Tokens<Token> $tokens
2424
*/
25-
public function isPreceededByFuncCall(Tokens $tokens, int $position): bool
25+
public function isPrecededByFuncCall(Tokens $tokens, int $position): bool
2626
{
2727
for ($i = $position; $i >= 0; --$i) {
2828
/** @var Token $currentToken */

0 commit comments

Comments
 (0)