Replace unnecessary strlen > 0 calls with !== "" checks

This commit is contained in:
Dylan K. Taylor
2018-08-25 16:07:49 +01:00
parent 298259b473
commit 7dd53f2397
4 changed files with 6 additions and 6 deletions

View File

@ -49,7 +49,7 @@ class TeleportCommand extends VanillaCommand{
}
$args = array_values(array_filter($args, function($arg){
return strlen($arg) > 0;
return $arg !== "";
}));
if(count($args) < 1 or count($args) > 6){
throw new InvalidCommandSyntaxException();