forked from Wavyzz/dolibarr
Doc
This commit is contained in:
@@ -103,6 +103,7 @@ class GlobalToFunction extends AbstractRector
|
|||||||
|
|
||||||
if ($node instanceof FuncCall) {
|
if ($node instanceof FuncCall) {
|
||||||
$tmpfunctionname = $this->getName($node);
|
$tmpfunctionname = $this->getName($node);
|
||||||
|
// If function is ok(we must avoid a lot of cases like isset, empty)
|
||||||
if (in_array($tmpfunctionname, array('dol_escape_htmltag', 'make_substitutions', 'min', 'max', 'explode'))) {
|
if (in_array($tmpfunctionname, array('dol_escape_htmltag', 'make_substitutions', 'min', 'max', 'explode'))) {
|
||||||
$args = $node->getArgs();
|
$args = $node->getArgs();
|
||||||
$nbofparam = count($args);
|
$nbofparam = count($args);
|
||||||
|
|||||||
Reference in New Issue
Block a user