public function find()
    {
        $this->getFileList()->clear();
        foreach ($this->searchLocations as $location) {
            if (! is_dir($location)) {
                continue;
            }
            $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($location));
            foreach ($iterator as $file) {
                if (! $this->filter($file)) {
                    continue;
                }
                $this->getFileList()->add($file);
            }
        }

        return $this->getFileList();
    }
public function find()
    {
        $this->getFileList()->clear();
        foreach ($this->searchLocations as $location) {
            if (! is_dir($location)) {
                continue;
            }
            $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($location));
            foreach ($iterator as $file) {
                if (! $this->filter($file)) {
                    continue;
                }
                $this->getFileList()->add($file);
            }
        }

        return $this->getFileList();
    }
public function find ( ) { $ this -> getFileList ( ) -> clear ( ) ; foreach ( $ this -> searchLocations as $ location ) { if ( ! is_dir ( $ location ) ) { continue ; } $ iterator = new \ RecursiveIteratorIterator ( new \ RecursiveDirectoryIterator ( $ location ) ) ; foreach ( $ iterator as $ file ) { if ( ! $ this -> filter ( $ file ) ) { continue ; } $ this -> getFileList ( ) -> add ( $ file ) ; } } return $ this -> getFileList ( ) ; }
Do the actual searching

@return FileListInterface[]
Do the actual searching