src/Fixer/ControlStructure/YodaStyleFixer.php
private function isListStatement(Tokens $tokens, $index, $end)
    {
        for ($i = $index; $i <= $end; ++$i) {
            if ($tokens[$i]->isGivenKind([T_LIST, CT::T_DESTRUCTURING_SQUARE_BRACE_OPEN, CT::T_DESTRUCTURING_SQUARE_BRACE_CLOSE])) {
                return true;
            }
        }

        return false;
    }
private function isListStatement(Tokens $tokens, $index, $end)
    {
        for ($i = $index; $i <= $end; ++$i) {
            if ($tokens[$i]->isGivenKind([T_LIST, CT::T_DESTRUCTURING_SQUARE_BRACE_OPEN, CT::T_DESTRUCTURING_SQUARE_BRACE_CLOSE])) {
                return true;
            }
        }

        return false;
    }
private function isListStatement ( Tokens $ tokens , $ index , $ end ) { for ( $ i = $ index ; $ i <= $ end ; ++ $ i ) { if ( $ tokens [ $ i ] -> isGivenKind ( [ T_LIST , CT :: T_DESTRUCTURING_SQUARE_BRACE_OPEN , CT :: T_DESTRUCTURING_SQUARE_BRACE_CLOSE ] ) ) { return true ; } } return false ; }
@param Tokens $tokens
@param int    $index
@param int    $end

@return bool
@param Tokens $tokens @param int $index @param int $end