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/3342'
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions src/Acl.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function getRole($role)
* The $role parameter can either be a Role or a Role identifier.
*
* @param Role\RoleInterface|string $role
* @return boolean
* @return bool
*/
public function hasRole($role)
{
Expand All @@ -157,8 +157,8 @@ public function hasRole($role)
*
* @param Role\RoleInterface|string $role
* @param Role\RoleInterface|string $inherit
* @param boolean $onlyParents
* @return boolean
* @param bool $onlyParents
* @return bool
*/
public function inheritsRole($role, $inherit, $onlyParents = false)
{
Expand Down Expand Up @@ -307,7 +307,7 @@ public function getResource($resource)
* The $resource parameter can either be a Resource or a Resource identifier.
*
* @param Resource\ResourceInterface|string $resource
* @return boolean
* @return bool
*/
public function hasResource($resource)
{
Expand All @@ -331,9 +331,9 @@ public function hasResource($resource)
*
* @param Resource\ResourceInterface|string $resource
* @param Resource\ResourceInterface|string inherit
* @param boolean $onlyParent
* @param bool $onlyParent
* @throws Exception\InvalidArgumentException
* @return boolean
* @return bool
*/
public function inheritsResource($resource, $inherit, $onlyParent = false)
{
Expand Down Expand Up @@ -683,7 +683,7 @@ public function setRule($operation, $type, $roles = null, $resources = null,
* @param Role\RoleInterface|string $role
* @param Resource\ResourceInterface|string $resource
* @param string $privilege
* @return boolean
* @return bool
*/
public function isAllowed($role = null, $resource = null, $privilege = null)
{
Expand Down Expand Up @@ -782,7 +782,7 @@ protected function getRoleRegistry()
*
* @param Role\RoleInterface $role
* @param Resource\ResourceInterface $resource
* @return boolean|null
* @return bool|null
*/
protected function roleDFSAllPrivileges(Role\RoleInterface $role, Resource\ResourceInterface $resource = null)
{
Expand Down Expand Up @@ -818,7 +818,7 @@ protected function roleDFSAllPrivileges(Role\RoleInterface $role, Resource\Resou
* @param Role\RoleInterface $role
* @param Resource\ResourceInterface $resource
* @param array $dfs
* @return boolean|null
* @return bool|null
* @throws Exception\RuntimeException
*/
protected function roleDFSVisitAllPrivileges(Role\RoleInterface $role, Resource\ResourceInterface $resource = null, &$dfs = null)
Expand Down Expand Up @@ -856,7 +856,7 @@ protected function roleDFSVisitAllPrivileges(Role\RoleInterface $role, Resource\
* @param Role\RoleInterface $role
* @param Resource\ResourceInterface $resource
* @param string $privilege
* @return boolean|null
* @return bool|null
* @throws Exception\RuntimeException
*/
protected function roleDFSOnePrivilege(Role\RoleInterface $role, Resource\ResourceInterface $resource = null, $privilege = null)
Expand Down Expand Up @@ -898,7 +898,7 @@ protected function roleDFSOnePrivilege(Role\RoleInterface $role, Resource\Resour
* @param Resource\ResourceInterface $resource
* @param string $privilege
* @param array $dfs
* @return boolean|null
* @return bool|null
* @throws Exception\RuntimeException
*/
protected function roleDFSVisitOnePrivilege(Role\RoleInterface $role, Resource\ResourceInterface $resource = null,
Expand Down Expand Up @@ -1005,7 +1005,7 @@ protected function getRuleType(Resource\ResourceInterface $resource = null, Role
*
* @param Resource\ResourceInterface $resource
* @param Role\RoleInterface $role
* @param boolean $create
* @param bool $create
* @return array|null
*/
protected function &getRules(Resource\ResourceInterface $resource = null, Role\RoleInterface $role = null, $create = false)
Expand Down
2 changes: 1 addition & 1 deletion src/Assertion/AssertionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ interface AssertionInterface
* @param RoleInterface $role
* @param ResourceInterface $resource
* @param string $privilege
* @return boolean
* @return bool
*/
public function assert(Acl $acl, RoleInterface $role = null, ResourceInterface $resource = null, $privilege = null);
}
6 changes: 3 additions & 3 deletions src/Role/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function get($role)
* The $role parameter can either be a Role or a Role identifier.
*
* @param RoleInterface|string $role
* @return boolean
* @return bool
*/
public function has($role)
{
Expand Down Expand Up @@ -164,9 +164,9 @@ public function getParents($role)
*
* @param RoleInterface|string $role
* @param RoleInterface|string $inherit
* @param boolean $onlyParents
* @param bool $onlyParents
* @throws Exception\InvalidArgumentException
* @return boolean
* @return bool
*/
public function inherits($role, $inherit, $onlyParents = false)
{
Expand Down

0 comments on commit b7556e5

Please sign in to comment.