public function files()
    {
        $files = (new Finder)->files();

        foreach ($this->ignoredFiles as $name) {
            $files->notName($name);
        }

        foreach ($this->searchedFiles as $name) {
            $files->name($name);
        }

        return $files->exclude($this->ignoredDirectories)->in($this->dir);
    }
public function files()
    {
        $files = (new Finder)->files();

        foreach ($this->ignoredFiles as $name) {
            $files->notName($name);
        }

        foreach ($this->searchedFiles as $name) {
            $files->name($name);
        }

        return $files->exclude($this->ignoredDirectories)->in($this->dir);
    }
public function files ( ) { $ files = ( new Finder ) -> files ( ) ; foreach ( $ this -> ignoredFiles as $ name ) { $ files -> notName ( $ name ) ; } foreach ( $ this -> searchedFiles as $ name ) { $ files -> name ( $ name ) ; } return $ files -> exclude ( $ this -> ignoredDirectories ) -> in ( $ this -> dir ) ; }
Finds files to rename.

@return array
Finds files to rename .