private function createCache(array $cache)
    {
        ksort($cache);

        $format = "\t%s => %s," . PHP_EOL;
        $rows = [];

        foreach ($cache as $key => $value) {
            $rows[] = sprintf($format, var_export($key, true), var_export($value, true));
        }

        return sprintf('<?php return [%s];' . PHP_EOL, PHP_EOL . implode('', $rows));
    }
private function createCache(array $cache)
    {
        ksort($cache);

        $format = "\t%s => %s," . PHP_EOL;
        $rows = [];

        foreach ($cache as $key => $value) {
            $rows[] = sprintf($format, var_export($key, true), var_export($value, true));
        }

        return sprintf('<?php return [%s];' . PHP_EOL, PHP_EOL . implode('', $rows));
    }
private function createCache ( array $ cache ) { ksort ( $ cache ) ; $ format = "\t%s => %s," . PHP_EOL ; $ rows = [ ] ; foreach ( $ cache as $ key => $ value ) { $ rows [ ] = sprintf ( $ format , var_export ( $ key , true ) , var_export ( $ value , true ) ) ; } return sprintf ( '<?php return [%s];' . PHP_EOL , PHP_EOL . implode ( '' , $ rows ) ) ; }
Creates the PHP code for the class cache.
@param string[] $cache Class location cache
@return string PHP code for the cache file
Creates the PHP code for the class cache .