src/Fixer/ControlStructure/YodaStyleFixer.php
private function fixTokensComparePart(Tokens $tokens, $start, $end)
    {
        $newTokens = $tokens->generatePartialCode($start, $end);
        $newTokens = $this->fixTokens(Tokens::fromCode(sprintf('<?php %s;', $newTokens)));
        $newTokens->clearAt(\count($newTokens) - 1);
        $newTokens->clearAt(0);
        $newTokens->clearEmptyTokens();

        return $newTokens;
    }
private function fixTokensComparePart(Tokens $tokens, $start, $end)
    {
        $newTokens = $tokens->generatePartialCode($start, $end);
        $newTokens = $this->fixTokens(Tokens::fromCode(sprintf('<?php %s;', $newTokens)));
        $newTokens->clearAt(\count($newTokens) - 1);
        $newTokens->clearAt(0);
        $newTokens->clearEmptyTokens();

        return $newTokens;
    }
private function fixTokensComparePart ( Tokens $ tokens , $ start , $ end ) { $ newTokens = $ tokens -> generatePartialCode ( $ start , $ end ) ; $ newTokens = $ this -> fixTokens ( Tokens :: fromCode ( sprintf ( '<?php %s;' , $ newTokens ) ) ) ; $ newTokens -> clearAt ( \ count ( $ newTokens ) - 1 ) ; $ newTokens -> clearAt ( 0 ) ; $ newTokens -> clearEmptyTokens ( ) ; return $ newTokens ; }
@param Tokens $tokens
@param int    $start
@param int    $end

@return Tokens
@param Tokens $tokens @param int $start @param int $end