src/TempFileCache.php
private function getCacheFiles()
    {
        if (!($files = @scandir($this->directory, 1))) {
            return false;
        }

        $negExtLen = -1 * strlen($this->extension);
        $return = array();
        foreach ($files as $file) {
            if (substr($file, $negExtLen) === $this->extension) {
                $return[] = $this->directory . '/' . $file;
            }
        }
        return $return;
    }
private function getCacheFiles()
    {
        if (!($files = @scandir($this->directory, 1))) {
            return false;
        }

        $negExtLen = -1 * strlen($this->extension);
        $return = array();
        foreach ($files as $file) {
            if (substr($file, $negExtLen) === $this->extension) {
                $return[] = $this->directory . '/' . $file;
            }
        }
        return $return;
    }
private function getCacheFiles ( ) { if ( ! ( $ files = @ scandir ( $ this -> directory , 1 ) ) ) { return false ; } $ negExtLen = - 1 * strlen ( $ this -> extension ) ; $ return = array ( ) ; foreach ( $ files as $ file ) { if ( substr ( $ file , $ negExtLen ) === $ this -> extension ) { $ return [ ] = $ this -> directory . '/' . $ file ; } } return $ return ; }
Finds all files with the cache extension in the cache directory

@return Array Returns an array of filenames that represent cached entries.
Finds all files with the cache extension in the cache directory