mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 12:04:46 +00:00
eliminate remaining empty() usages
This commit is contained in:
@@ -23,6 +23,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\permission;
|
||||
|
||||
use function count;
|
||||
use function is_array;
|
||||
use function is_bool;
|
||||
use function ksort;
|
||||
@@ -151,7 +152,7 @@ class PermissionParser{
|
||||
}
|
||||
$children[$name] = self::emitPermission($child);
|
||||
}
|
||||
if(!empty($children)){
|
||||
if(count($children) > 0){
|
||||
ksort($children);
|
||||
$result["children"] = $children;
|
||||
}
|
||||
|
Reference in New Issue
Block a user