private function doSkip(string $line): bool
    {
        switch (true) {
            case (empty(trim($line))):
                // empty line
                $skip = true;
                break;
            case (1 == preg_match('/(#[\s\w]+)/', $line)):
                if (1 === $this->linecountOverall) {
                    $this->addName($line);
                }
                $skip = true;
                break;
            default:
                $skip = false;
        }

        return $skip;
    }
private function doSkip(string $line): bool
    {
        switch (true) {
            case (empty(trim($line))):
                // empty line
                $skip = true;
                break;
            case (1 == preg_match('/(#[\s\w]+)/', $line)):
                if (1 === $this->linecountOverall) {
                    $this->addName($line);
                }
                $skip = true;
                break;
            default:
                $skip = false;
        }

        return $skip;
    }
private function doSkip ( string $ line ) : bool { switch ( true ) { case ( empty ( trim ( $ line ) ) ) : // empty line $ skip = true ; break ; case ( 1 == preg_match ( '/(#[\s\w]+)/' , $ line ) ) : if ( 1 === $ this -> linecountOverall ) { $ this -> addName ( $ line ) ; } $ skip = true ; break ; default : $ skip = false ; } return $ skip ; }
Check if line is empty or has comment.
In case of comments, add name to definition.

@param string $line
@return bool
Check if line is empty or has comment . In case of comments add name to definition .