protected function isEntirelyCommented( $sql ) {
		$lines = explode("\n", $sql);
		foreach( $lines as $line ) {
			if( preg_match(self::COMMENT_LINE_REGEX,$line) ) continue;
			
			// Otherwise this line's not a comment!
			return false;
		}
		// If we get here, there were no non-comment, non-blank lines, so yes.
		return true;
	}
protected function isEntirelyCommented( $sql ) {
		$lines = explode("\n", $sql);
		foreach( $lines as $line ) {
			if( preg_match(self::COMMENT_LINE_REGEX,$line) ) continue;
			
			// Otherwise this line's not a comment!
			return false;
		}
		// If we get here, there were no non-comment, non-blank lines, so yes.
		return true;
	}
protected function isEntirelyCommented ( $ sql ) { $ lines = explode ( "\n" , $ sql ) ; foreach ( $ lines as $ line ) { if ( preg_match ( self :: COMMENT_LINE_REGEX , $ line ) ) continue ; // Otherwise this line's not a comment! return false ; } // If we get here, there were no non-comment, non-blank lines, so yes. return true ; }
Commented or empty
Commented or empty