Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Fixer/Spacing/MethodChainingNewlineFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private function isDoubleBracket(Tokens $tokens, int $position): bool
*
* @param Tokens<Token> $tokens
*/
private function isPreceededByOpenedCallInAnotherBracket(Tokens $tokens, int $position): bool
private function isPrecededByOpenedCallInAnotherBracket(Tokens $tokens, int $position): bool
{
$blockInfo = $this->blockFinder->findInTokensByEdge($tokens, $position);
if (! $blockInfo instanceof BlockInfo) {
Expand All @@ -142,11 +142,11 @@ private function shouldBracketPrefix(Tokens $tokens, int $position, int $objectO
return false;
}

if ($this->chainMethodCallAnalyzer->isPreceededByFuncCall($tokens, $position)) {
if ($this->chainMethodCallAnalyzer->isPrecededByFuncCall($tokens, $position)) {
return false;
}

if ($this->isPreceededByOpenedCallInAnotherBracket($tokens, $position)) {
if ($this->isPrecededByOpenedCallInAnotherBracket($tokens, $position)) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/TokenAnalyzer/ChainMethodCallAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(
*
* @param Tokens<Token> $tokens
*/
public function isPreceededByFuncCall(Tokens $tokens, int $position): bool
public function isPrecededByFuncCall(Tokens $tokens, int $position): bool
{
for ($i = $position; $i >= 0; --$i) {
/** @var Token $currentToken */
Expand Down