eliminate remaining empty() usages

This commit is contained in:
Dylan K. Taylor
2020-02-07 21:46:16 +00:00
parent 1ffabbb567
commit aac7da6c96
22 changed files with 40 additions and 30 deletions

View File

@ -26,6 +26,7 @@ namespace pocketmine\event\player;
use pocketmine\event\Event;
use pocketmine\player\PlayerInfo;
use function array_keys;
use function count;
/**
* Called when a player connects to the server, prior to authentication taking place.
@ -139,7 +140,7 @@ class PlayerPreLoginEvent extends Event{
* Returns whether the player is allowed to continue logging in.
*/
public function isAllowed() : bool{
return empty($this->kickReasons);
return count($this->kickReasons) === 0;
}
/**