classes/phing/util/DirectoryScanner.php
public static function addDefaultExclude($s)
    {
        if (!in_array($s, self::$defaultExcludeList)) {
            $return = true;
            self::$defaultExcludeList[] = $s;
        } else {
            $return = false;
        }

        return $return;
    }
public static function addDefaultExclude($s)
    {
        if (!in_array($s, self::$defaultExcludeList)) {
            $return = true;
            self::$defaultExcludeList[] = $s;
        } else {
            $return = false;
        }

        return $return;
    }
public static function addDefaultExclude ( $ s ) { if ( ! in_array ( $ s , self :: $ defaultExcludeList ) ) { $ return = true ; self :: $ defaultExcludeList [ ] = $ s ; } else { $ return = false ; } return $ return ; }
Add a pattern to the default excludes unless it is already a
default exclude.

@param  string $s A string to add as an exclude pattern.
@return boolean   <code>true</code> if the string was added;
<code>false</code> if it already existed.
Add a pattern to the default excludes unless it is already a default exclude .