private function cleanComment($comment) {
        $commentLines = explode(PHP_EOL, $comment);
        for ($i = sizeof($commentLines) - 1; $i >= 0; $i--) {
            $commentLine = $commentLines[$i];
            if (is_numeric(strpos($commentLine, "/**")) ||
                is_numeric(strpos($commentLine, "*/")) ||
                preg_match("/@[\s\S]*$/",$commentLine) ||
                !trim($commentLine,"* ")) {
                array_splice($commentLines, $i, 1);
            }
        }

        return join(PHP_EOL, $commentLines);
    }
private function cleanComment($comment) {
        $commentLines = explode(PHP_EOL, $comment);
        for ($i = sizeof($commentLines) - 1; $i >= 0; $i--) {
            $commentLine = $commentLines[$i];
            if (is_numeric(strpos($commentLine, "/**")) ||
                is_numeric(strpos($commentLine, "*/")) ||
                preg_match("/@[\s\S]*$/",$commentLine) ||
                !trim($commentLine,"* ")) {
                array_splice($commentLines, $i, 1);
            }
        }

        return join(PHP_EOL, $commentLines);
    }
private function cleanComment ( $ comment ) { $ commentLines = explode ( PHP_EOL , $ comment ) ; for ( $ i = sizeof ( $ commentLines ) - 1 ; $ i >= 0 ; $ i -- ) { $ commentLine = $ commentLines [ $ i ] ; if ( is_numeric ( strpos ( $ commentLine , "/**" ) ) || is_numeric ( strpos ( $ commentLine , "*/" ) ) || preg_match ( "/@[\s\S]*$/" , $ commentLine ) || ! trim ( $ commentLine , "* " ) ) { array_splice ( $ commentLines , $ i , 1 ) ; } } return join ( PHP_EOL , $ commentLines ) ; }
Clean a comment
Clean a comment