diff --git a/app/Classes/LDAP/Attribute/ObjectClass.php b/app/Classes/LDAP/Attribute/ObjectClass.php index a20263c..aa6da48 100644 --- a/app/Classes/LDAP/Attribute/ObjectClass.php +++ b/app/Classes/LDAP/Attribute/ObjectClass.php @@ -36,7 +36,7 @@ final class ObjectClass extends Attribute */ public function isStructural(string $value): bool { - return $this->structural->search($value) !== FALSE; + return $this->structural->contains($value); } public function render(bool $edit=FALSE,bool $old=FALSE,bool $new=FALSE): View diff --git a/app/Classes/LDAP/Schema/AttributeType.php b/app/Classes/LDAP/Schema/AttributeType.php index bff49af..7b48b2f 100644 --- a/app/Classes/LDAP/Schema/AttributeType.php +++ b/app/Classes/LDAP/Schema/AttributeType.php @@ -324,7 +324,7 @@ final class AttributeType extends Base { */ public function addRequiredByObjectClass(string $name): void { - if ($this->required_by_object_classes->search($name) === FALSE) + if (! $this->required_by_object_classes->contains($name)) $this->required_by_object_classes->push($name); } @@ -336,7 +336,7 @@ final class AttributeType extends Base { */ public function addUsedInObjectClass(string $name): void { - if ($this->used_in_object_classes->search($name) === FALSE) + if (! $this->used_in_object_classes->contains($name)) $this->used_in_object_classes->push($name); } diff --git a/app/Classes/LDAP/Schema/MatchingRule.php b/app/Classes/LDAP/Schema/MatchingRule.php index c88f9ef..876e5b3 100644 --- a/app/Classes/LDAP/Schema/MatchingRule.php +++ b/app/Classes/LDAP/Schema/MatchingRule.php @@ -115,7 +115,7 @@ final class MatchingRule extends Base { { $name = trim($name); - if ($this->used_by_attrs->search($name) === FALSE) + if (! $this->used_by_attrs->contains($name)) $this->used_by_attrs->push($name); } diff --git a/app/Classes/LDAP/Schema/ObjectClass.php b/app/Classes/LDAP/Schema/ObjectClass.php index f06b424..77a896c 100644 --- a/app/Classes/LDAP/Schema/ObjectClass.php +++ b/app/Classes/LDAP/Schema/ObjectClass.php @@ -241,7 +241,7 @@ final class ObjectClass extends Base */ public function addChildObjectClass(string $name): void { - if (! $this->child_objectclasses->has($name)) + if (! $this->child_objectclasses->contains($name)) $this->child_objectclasses->push($name); } diff --git a/resources/themes/architect/views/layouts/partials/contentheader.blade.php b/resources/themes/architect/views/layouts/partials/contentheader.blade.php index e4308d0..ffe80c0 100644 --- a/resources/themes/architect/views/layouts/partials/contentheader.blade.php +++ b/resources/themes/architect/views/layouts/partials/contentheader.blade.php @@ -27,7 +27,7 @@