protected function containsBadComments($value)
    {
        foreach (token_get_all($value) as $token) {
            if (!is_array($token) || !isset($token[0]) || $token[0] !== T_COMMENT) {
                continue;
            }

            if (substr($token[1], 0, 2) === '//') {
                return true;
            }
        }

        return false;
    }
protected function containsBadComments($value)
    {
        foreach (token_get_all($value) as $token) {
            if (!is_array($token) || !isset($token[0]) || $token[0] !== T_COMMENT) {
                continue;
            }

            if (substr($token[1], 0, 2) === '//') {
                return true;
            }
        }

        return false;
    }
protected function containsBadComments ( $ value ) { foreach ( token_get_all ( $ value ) as $ token ) { if ( ! is_array ( $ token ) || ! isset ( $ token [ 0 ] ) || $ token [ 0 ] !== T_COMMENT ) { continue ; } if ( substr ( $ token [ 1 ] , 0 , 2 ) === '//' ) { return true ; } } return false ; }
Does the code contain bad comments?

@param string $value

@return bool
Does the code contain bad comments?