Avoid variables with short names like $el. Configured minimum length is 3.
function (&$el) {
Missing class import via use statement (line '8', column '23').
throw new \InvalidArgumentException('value must be array');
Missing class import via use statement (line '16', column '19').
throw new \InvalidArgumentException(sprintf("Invalid type given '%s', must by an object", gettype($value)));
Missing class import via use statement (line '19', column '19').
throw new \InvalidArgumentException(sprintf("Expected: string, Given: %s", gettype($value)));
Missing class import via use statement (line '20', column '27').
throw new \InvalidArgumentException('value must be array of integers');
Missing class import via use statement (line '18', column '23').
throw new \InvalidArgumentException(sprintf('Invalid type given %s', gettype($value)));
Missing class import via use statement (line '8', column '23').
throw new \InvalidArgumentException('invalid type given');
Missing class import via use statement (line '8', column '23').
throw new \InvalidArgumentException('Empty value given');
Missing class import via use statement (line '19', column '31').
throw new \InvalidArgumentException('invalid type given');
Avoid too many return
statements within this method.
return $value != $operand;
Missing class import via use statement (line '18', column '23').
throw new \InvalidArgumentException("Value should be $operator $operand");
Missing class import via use statement (line '55', column '27').
throw new \InvalidArgumentException("Unknown operator '$operator' given");
Avoid too many return
statements within this method.
return $value < $operand;
Missing class import via use statement (line '12', column '23').
throw new \InvalidArgumentException('Object cannot be converted to boolean value');
Missing class import via use statement (line '8', column '23').
throw new \InvalidArgumentException(sprintf("Supplied date '%s' is invalid.", $value));
Missing class import via use statement (line '8', column '23').
throw new \InvalidArgumentException('Empty array');
Missing class import via use statement (line '9', column '23').
throw new \InvalidArgumentException('invalid type given');
Missing class import via use statement (line '11', column '27').
throw new \InvalidArgumentException('invalid type given');
Missing class import via use statement (line '8', column '23').
throw new \InvalidArgumentException('Value must be null');
Missing class import via use statement (line '19', column '27').
throw new \InvalidArgumentException('Invalid type given');