src/Dir/Dir.php
protected function _matchType()
    {
        if (!$this->_types) {
            return true;
        }
        $file = $this->current();
        foreach ($this->_types as $type) {
            $method = 'is' . ucfirst($type);
            if ($file->$method()) {
                return true;
            }
        }
        return false;
    }
protected function _matchType()
    {
        if (!$this->_types) {
            return true;
        }
        $file = $this->current();
        foreach ($this->_types as $type) {
            $method = 'is' . ucfirst($type);
            if ($file->$method()) {
                return true;
            }
        }
        return false;
    }
protected function _matchType ( ) { if ( ! $ this -> _types ) { return true ; } $ file = $ this -> current ( ) ; foreach ( $ this -> _types as $ type ) { $ method = 'is' . ucfirst ( $ type ) ; if ( $ file -> $ method ( ) ) { return true ; } } return false ; }
Checks if a file passes match the allowed type.

@return boolean Returns `true` if match the allowed type, `false` otherwise.
Checks if a file passes match the allowed type .