PDepend\Source\Language\PHP\AbstractPHPParser::isAlternativeScopeTermination PHP Method

isAlternativeScopeTermination() private method

This method returns true when the given token identifier represents the end token of a alternative scope termination symbol. Otherwise this method will return false.
Since: 0.10.0
private isAlternativeScopeTermination ( integer $tokenType ) : boolean
$tokenType integer The token type identifier.
return boolean
    private function isAlternativeScopeTermination($tokenType)
    {
        return in_array($tokenType, array(Tokens::T_ENDDECLARE, Tokens::T_ENDFOR, Tokens::T_ENDFOREACH, Tokens::T_ENDIF, Tokens::T_ENDSWITCH, Tokens::T_ENDWHILE));
    }
AbstractPHPParser