private function isEmptyComment($content)
    {
        static $mapper = [
            self::TYPE_HASH => '|^#\s*$|', // single line comment starting with '#'
            self::TYPE_SLASH_ASTERISK => '|^/\*\s*\*/$|', // comment starting with '/*' and ending with '*/' (but not a PHPDoc)
            self::TYPE_DOUBLE_SLASH => '|^//\s*$|', // single line comment starting with '//'
        ];

        $type = $this->getCommentType($content);

        return 1 === Preg::match($mapper[$type], $content);
    }
private function isEmptyComment($content)
    {
        static $mapper = [
            self::TYPE_HASH => '|^
            self::TYPE_SLASH_ASTERISK => '|^/\*\s*\*/$|', 
            self::TYPE_DOUBLE_SLASH => '|^
        ];

        $type = $this->getCommentType($content);

        return 1 === Preg::match($mapper[$type], $content);
    }
private function isEmptyComment ( $ content ) { static $ mapper = [ self :: TYPE_HASH => '|^#\s*$|' , // single line comment starting with '#' self :: TYPE_SLASH_ASTERISK => '|^/\*\s*\*/$|' , // comment starting with '/*' and ending with '*/' (but not a PHPDoc) self :: TYPE_DOUBLE_SLASH => '|^//\s*$|' , // single line comment starting with '//' ] ; $ type = $ this -> getCommentType ( $ content ) ; return 1 === Preg :: match ( $ mapper [ $ type ] , $ content ) ; }
@param string $content

@return bool
@param string $content