Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/3286'
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions src/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ public function getLdap()
if ($this->ldap === null) {
throw new Exception\LdapException(null, 'No LDAP connection specified.',
Exception\LdapException::LDAP_OTHER);
} else {
return $this->ldap;
}

return $this->ldap;
}

/**
Expand Down Expand Up @@ -816,9 +816,9 @@ protected function assertChangeableAttribute($name)
throw new Exception\LdapException(null, 'Cannot change attribute because it\'s part of the RDN');
} elseif (in_array($name, static::$systemAttributes)) {
throw new Exception\LdapException(null, 'Cannot change attribute because it\'s read-only');
} else {
return true;
}

return true;
}

/**
Expand Down
12 changes: 6 additions & 6 deletions src/Node/AbstractNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ public function getData($includeSystemAttributes = true)
}
}
return $data;
} else {
return $this->currentData;
}

return $this->currentData;
}

/**
Expand All @@ -286,9 +286,9 @@ public function existsAttribute($name, $emptyExists = false)
}

return count($this->currentData[$name]) > 0;
} else {
return false;
}

return false;
}

/**
Expand Down Expand Up @@ -317,9 +317,9 @@ public function getAttribute($name, $index = null)
{
if ($name == 'dn') {
return $this->getDnString();
} else {
return Ldap\Attribute::getAttribute($this->currentData, $name, $index);
}

return Ldap\Attribute::getAttribute($this->currentData, $name, $index);
}

/**
Expand Down
12 changes: 6 additions & 6 deletions src/Node/ChildrenIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ public function hasChildren()
{
if ($this->current() instanceof Ldap\Node) {
return $this->current()->hasChildren();
} else {
return false;
}

return false;
}

/**
Expand All @@ -126,9 +126,9 @@ public function getChildren()
{
if ($this->current() instanceof Ldap\Node) {
return $this->current()->getChildren();
} else {
return null;
}

return null;
}

/**
Expand All @@ -142,9 +142,9 @@ public function offsetGet($rdn)
{
if ($this->offsetExists($rdn)) {
return $this->data[$rdn];
} else {
return null;
}

return null;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Node/RootDse.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public static function create(Ldap\Ldap $ldap)
&& $data['structuralobjectclass'][0] === 'OpenLDAProotDSE'
) {
return new RootDse\OpenLdap($dn, $data);
} else {
return new self($dn, $data);
}

return new self($dn, $data);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Node/Schema/AbstractItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ public function __get($name)
{
if (array_key_exists($name, $this->data)) {
return $this->data[$name];
} else {
return null;
}

return null;
}

/**
Expand Down
8 changes: 4 additions & 4 deletions src/Node/Schema/AttributeType/OpenLdap.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public function getSyntax()
} else {
return $parent->getSyntax();
}
} else {
return $this->syntax;
}

return $this->syntax;
}

/**
Expand All @@ -76,9 +76,9 @@ public function getMaxLength()
} else {
return $parent->getMaxLength();
}
} else {
return (int) $maxLength;
}

return (int) $maxLength;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Node/Schema/ObjectClass/OpenLdap.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ public function getType()
return Schema::OBJECTCLASS_TYPE_ABSTRACT;
} elseif ($this->auxiliary) {
return Schema::OBJECTCLASS_TYPE_AUXILIARY;
} else {
return Schema::OBJECTCLASS_TYPE_UNKNOWN;
}

return Schema::OBJECTCLASS_TYPE_UNKNOWN;
}

/**
Expand Down

0 comments on commit fb7cd20

Please sign in to comment.