src/Files/FileFinder.php
public function filterResult(callable $filter)
    {
        $result = [];

        foreach ($this->files as $file) {
            if ($filter($file)) {
                $result[] = $file;
            }
        }

        return $result;
    }
public function filterResult(callable $filter)
    {
        $result = [];

        foreach ($this->files as $file) {
            if ($filter($file)) {
                $result[] = $file;
            }
        }

        return $result;
    }
public function filterResult ( callable $ filter ) { $ result = [ ] ; foreach ( $ this -> files as $ file ) { if ( $ filter ( $ file ) ) { $ result [ ] = $ file ; } } return $ result ; }
Further filtering the find result set
@param callable $filter
e.g:
$filter = function($file) {
if (false !== strpos($file, 'jqu') ) {
return true;
}
return false;
};
@return array
Further filtering the find result set