Same name and namespace in other branches
  1. 6.0.x advagg_js_minify/jshrink.inc \JShrink\Minifier::unlock() 1 commentaire
  2. 7.x-2.x advagg_js_compress/jshrink.inc \JShrink\Minifier::unlock() 1 commentaire
  3. 8.x-2.x advagg_js_minify/jshrink.inc \JShrink\Minifier::unlock() 1 commentaire
  4. 8.x-3.x advagg_js_minify/jshrink.inc \JShrink\Minifier::unlock() 1 commentaire
  5. 8.x-4.x advagg_js_minify/jshrink.inc \JShrink\Minifier::unlock() 1 commentaire

Replace "locks" with the original characters

Paramètres

string $js The string to unlock:

Return value

bool

Fichier

advagg_js_minify/jshrink.inc, line 616

Classe

Minifier
Minifier

Namespace

JShrink

Code

protected function unlock($js) {
    if (empty($this->locks)) {
        return $js;
    }
    foreach ($this->locks as $lock => $replacement) {
        $js = str_replace($lock, $replacement, $js);
    }
    return $js;
}