Same name and namespace in other branches
  1. 6.0.x advagg_js_minify/jsqueeze.inc \Patchwork\JSqueeze::getNextName() 1 commentaire
  2. 7.x-2.x advagg_js_compress/jsqueeze.inc \Patchwork\JSqueeze::getNextName() 1 commentaire
  3. 8.x-2.x advagg_js_minify/jsqueeze.inc \Patchwork\JSqueeze::getNextName() 1 commentaire
  4. 8.x-3.x advagg_js_minify/jsqueeze.inc \Patchwork\JSqueeze::getNextName() 1 commentaire
  5. 8.x-4.x advagg_js_minify/jsqueeze.inc \Patchwork\JSqueeze::getNextName() 1 commentaire
1 call to JSqueeze::getNextName()
JSqueeze::renameVars dans advagg_js_minify/jsqueeze.inc

Fichier

advagg_js_minify/jsqueeze.inc, line 964

Classe

JSqueeze

Namespace

Patchwork

Code

protected function getNextName(&$tree = array(), &$counter = false) {
    if (false === $counter) {
        $counter =& $tree['counter'];
        isset($counter) || ($counter = -1);
        $exclude = array_flip($tree['used']);
    }
    else {
        $exclude = $tree;
    }
    ++$counter;
    $len0 = strlen($this->str0);
    $len1 = strlen($this->str0);
    $name = $this->str0[$counter % $len0];
    $i = intval($counter / $len0) - 1;
    while ($i >= 0) {
        $name .= $this->str1[$i % $len1];
        $i = intval($i / $len1) - 1;
    }
    return !(isset($this->reserved[$name]) || isset($exclude[$name])) ? $name : $this->getNextName($exclude, $counter);
}