protected function applyFix(\SplFileInfo $file, Tokens $tokens)
    {
        $analyzer = new TokensAnalyzer($tokens);
        $elements = array_reverse($analyzer->getClassyElements(), true);

        foreach ($elements as $index => $element) {
            if (!\in_array($element['type'], $this->configuration['elements'], true)) {
                continue; // not in configuration
            }

            $this->fixElement($tokens, $index);
        }
    }
protected function applyFix(\SplFileInfo $file, Tokens $tokens)
    {
        $analyzer = new TokensAnalyzer($tokens);
        $elements = array_reverse($analyzer->getClassyElements(), true);

        foreach ($elements as $index => $element) {
            if (!\in_array($element['type'], $this->configuration['elements'], true)) {
                continue; 
            }

            $this->fixElement($tokens, $index);
        }
    }
protected function applyFix ( \ SplFileInfo $ file , Tokens $ tokens ) { $ analyzer = new TokensAnalyzer ( $ tokens ) ; $ elements = array_reverse ( $ analyzer -> getClassyElements ( ) , true ) ; foreach ( $ elements as $ index => $ element ) { if ( ! \ in_array ( $ element [ 'type' ] , $ this -> configuration [ 'elements' ] , true ) ) { continue ; // not in configuration } $ this -> fixElement ( $ tokens , $ index ) ; } }
{@inheritdoc}
{