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

Commit

Permalink
Globally fix braces
Browse files Browse the repository at this point in the history
php-cs-fixer fix . --fixers=braces
  • Loading branch information
EvanDotPro committed Jul 27, 2012
1 parent bbf298c commit b34a30f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Acl.php
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,7 @@ protected function roleDFSAllPrivileges(Role\RoleInterface $role, Resource\Resou
return $result;
}

// This comment is needed due to a strange php-cs-fixer bug
while (null !== ($role = array_pop($dfs['stack']))) {
if (!isset($dfs['visited'][$role->getRoleId()])) {
if (null !== ($result = $this->roleDFSVisitAllPrivileges($role, $resource, $dfs))) {
Expand Down Expand Up @@ -873,6 +874,7 @@ protected function roleDFSOnePrivilege(Role\RoleInterface $role, Resource\Resour
return $result;
}

// This comment is needed due to a strange php-cs-fixer bug
while (null !== ($role = array_pop($dfs['stack']))) {
if (!isset($dfs['visited'][$role->getRoleId()])) {
if (null !== ($result = $this->roleDFSVisitOnePrivilege($role, $resource, $privilege, $dfs))) {
Expand Down

0 comments on commit b34a30f

Please sign in to comment.