Replace disallowed operators in src/permission/

This commit is contained in:
Dylan K. Taylor 2022-01-20 19:20:51 +00:00
parent e986a0a4f2
commit ae03c70dfc
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ class BanEntry{
}
if(count($parts) > 0){
$expire = trim(array_shift($parts));
if($expire !== "" and strtolower($expire) !== "forever"){
if($expire !== "" && strtolower($expire) !== "forever"){
$entry->setExpires(self::parseDate($expire));
}
}

View File

@ -114,7 +114,7 @@ class PermissibleInternal implements Permissible{
$result = new PermissionAttachment($plugin);
$this->attachments[spl_object_id($result)] = $result;
if($name !== null and $value !== null){
if($name !== null && $value !== null){
$result->setPermission($name, $value);
}