private function isAllowedByConfiguration(Tokens $tokens, $i)
    {
        $typeIndex = $tokens->getPrevMeaningfulToken($i);
        if ($tokens[$typeIndex]->isGivenKind(T_FINAL)) {
            return \in_array('final', $this->configuration['types'], true);
        }

        if ($tokens[$typeIndex]->isGivenKind(T_ABSTRACT)) {
            return \in_array('abstract', $this->configuration['types'], true);
        }

        return \in_array('normal', $this->configuration['types'], true);
    }
private function isAllowedByConfiguration(Tokens $tokens, $i)
    {
        $typeIndex = $tokens->getPrevMeaningfulToken($i);
        if ($tokens[$typeIndex]->isGivenKind(T_FINAL)) {
            return \in_array('final', $this->configuration['types'], true);
        }

        if ($tokens[$typeIndex]->isGivenKind(T_ABSTRACT)) {
            return \in_array('abstract', $this->configuration['types'], true);
        }

        return \in_array('normal', $this->configuration['types'], true);
    }
private function isAllowedByConfiguration ( Tokens $ tokens , $ i ) { $ typeIndex = $ tokens -> getPrevMeaningfulToken ( $ i ) ; if ( $ tokens [ $ typeIndex ] -> isGivenKind ( T_FINAL ) ) { return \ in_array ( 'final' , $ this -> configuration [ 'types' ] , true ) ; } if ( $ tokens [ $ typeIndex ] -> isGivenKind ( T_ABSTRACT ) ) { return \ in_array ( 'abstract' , $ this -> configuration [ 'types' ] , true ) ; } return \ in_array ( 'normal' , $ this -> configuration [ 'types' ] , true ) ; }
@param Tokens $tokens
@param int    $i

@return bool
@param Tokens $tokens @param int $i