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

parseOptionalAlternativeScopeTermination() private method

Parses the termination of a scope statement that uses PHP's laternative syntax format.
Since: 0.10.0
    private function parseOptionalAlternativeScopeTermination()
    {
        $tokenType = $this->tokenizer->peek();
        if ($this->isAlternativeScopeTermination($tokenType)) {
            $this->parseAlternativeScopeTermination($tokenType);
        }
    }
AbstractPHPParser