Skip to content

Commit 4cc7f35

Browse files
committed
Remove unnecessary isArrowFunction block in getScopeCloseForScopeOpen
1 parent 4a07180 commit 4cc7f35

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

VariableAnalysis/Lib/Helpers.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,12 +1064,6 @@ public static function getScopeCloseForScopeOpen(File $phpcsFile, $scopeStartInd
10641064
{
10651065
$tokens = $phpcsFile->getTokens();
10661066
$scopeCloserIndex = isset($tokens[$scopeStartIndex]['scope_closer']) ? $tokens[$scopeStartIndex]['scope_closer'] : 0;
1067-
1068-
if (self::isArrowFunction($phpcsFile, $scopeStartIndex)) {
1069-
$arrowFunctionInfo = self::getArrowFunctionOpenClose($phpcsFile, $scopeStartIndex);
1070-
$scopeCloserIndex = $arrowFunctionInfo ? $arrowFunctionInfo['scope_closer'] : $scopeCloserIndex;
1071-
}
1072-
10731067
if ($scopeStartIndex === 0) {
10741068
$scopeCloserIndex = self::getLastNonEmptyTokenIndexInFile($phpcsFile);
10751069
}

0 commit comments

Comments
 (0)