private function hydrateList($paths)
    {
        $files = array_filter(array_map(function ($path) {
            try {
                return $this->matcher->getFile($path);
            } catch (FileNotFoundException $e) {
                // Guess it doesn't exist anymore or we can't find it, remove from list.
                return null;
            }
        }, (array) $paths));

        $files = array_slice($files, 0, self::MAX_ITEMS);

        return $files;
    }
private function hydrateList($paths)
    {
        $files = array_filter(array_map(function ($path) {
            try {
                return $this->matcher->getFile($path);
            } catch (FileNotFoundException $e) {
                // Guess it doesn't exist anymore or we can't find it, remove from list.
                return null;
            }
        }, (array) $paths));

        $files = array_slice($files, 0, self::MAX_ITEMS);

        return $files;
    }
private function hydrateList ( $ paths ) { $ files = array_filter ( array_map ( function ( $ path ) { try { return $ this -> matcher -> getFile ( $ path ) ; } catch ( FileNotFoundException $ e ) { // Guess it doesn't exist anymore or we can't find it, remove from list. return null ; } } , ( array ) $ paths ) ) ; $ files = array_slice ( $ files , 0 , self :: MAX_ITEMS ) ; return $ files ; }
Converts a list of paths to file objects.

@param string[] $paths

@return FileInterface[]
Converts a list of paths to file objects .