src/Exclude.php
public function exclude($filePath)
    {
        foreach ($this->excludes as $exclude) {

            if ($this->isExcludeDir($exclude)) {
                if (substr($filePath, 0, strlen($exclude)) === $exclude) {
                    return true;
                }
            } elseif ($exclude === $filePath) {
                   return true;
            }
        }

        return false;
    }
public function exclude($filePath)
    {
        foreach ($this->excludes as $exclude) {

            if ($this->isExcludeDir($exclude)) {
                if (substr($filePath, 0, strlen($exclude)) === $exclude) {
                    return true;
                }
            } elseif ($exclude === $filePath) {
                   return true;
            }
        }

        return false;
    }
public function exclude ( $ filePath ) { foreach ( $ this -> excludes as $ exclude ) { if ( $ this -> isExcludeDir ( $ exclude ) ) { if ( substr ( $ filePath , 0 , strlen ( $ exclude ) ) === $ exclude ) { return true ; } } elseif ( $ exclude === $ filePath ) { return true ; } } return false ; }
Should we exclude this file from the install?

@param string $filePath
@return bool
Should we exclude this file from the install?