Same name in other branches
- 5.0.x advagg_js_minify/jsqueeze.inc \Patchwork\JSqueeze::getNextName()
- 6.0.x advagg_js_minify/jsqueeze.inc \Patchwork\JSqueeze::getNextName()
- 7.x-2.x advagg_js_compress/jsqueeze.inc \Patchwork\JSqueeze::getNextName()
- 8.x-2.x advagg_js_minify/jsqueeze.inc \Patchwork\JSqueeze::getNextName()
- 8.x-4.x advagg_js_minify/jsqueeze.inc \Patchwork\JSqueeze::getNextName()
1 call to JSqueeze::getNextName()
- JSqueeze::renameVars dans advagg_js_minify/
jsqueeze.inc
Fichier
-
advagg_js_minify/
jsqueeze.inc, line 964
Classe
Namespace
PatchworkCode
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);
}