throw new \LogicException('Unreachable');
}
- uasort($this->methods, function (ObjectType $a, ObjectType $b) {
+ \uasort($this->methods, function (ObjectType $a, ObjectType $b) {
return $b->priority <=> $a->priority;
});
- $this->setupId = array_keys($this->methods)[0];
+ $this->setupId = \array_keys($this->methods)[0];
if (isset($_GET['id'])) {
$this->setupId = $_GET['id'];
}
}
$this->method = $this->methods[$this->setupId];
- assert($this->method->getDefinition()->definitionName === 'com.woltlab.wcf.multifactor');
+ \assert($this->method->getDefinition()->definitionName === 'com.woltlab.wcf.multifactor');
$this->processor = $this->method->getProcessor();
}
$this->setupId,
]);
- $setupId = intval($statement->fetchSingleColumn());
+ $setupId = \intval($statement->fetchSingleColumn());
}
else {
$sql = "INSERT INTO wcf".WCF_N."_user_multifactor
$this->method->objectTypeID,
]);
- $setupId = intval(WCF::getDB()->getInsertID("wcf".WCF_N."_user_multifactor", 'setupID'));
+ $setupId = \intval(WCF::getDB()->getInsertID("wcf".WCF_N."_user_multifactor", 'setupID'));
}
if (!$setupId) {