Flarum\Asset\JsCompiler::format PHP Method

format() protected method

protected format ( $string )
    protected function format($string)
    {
        if (!$this->watch) {
            $key = 'js.' . sha1($string);
            $string = $this->cache->rememberForever($key, function () use($string) {
                return $this->minify($string);
            });
        }
        return $string . ";\n";
    }