diff options
author | Dariusz Ruminski <dariusz.ruminski@gmail.com> | 2015-03-27 23:06:33 +0100 |
---|---|---|
committer | Dariusz Ruminski <dariusz.ruminski@gmail.com> | 2015-03-27 23:12:40 +0100 |
commit | fb7e9db41c92a967194fb26ed4fef4ce95c7cdac (patch) | |
tree | 208c651deb4c28cd1a70d50594cd421178813487 | |
parent | 6c8c751f7f5b09dbb608d4f43518dcb3fb214057 (diff) | |
download | symfony-security-fb7e9db41c92a967194fb26ed4fef4ce95c7cdac.zip symfony-security-fb7e9db41c92a967194fb26ed4fef4ce95c7cdac.tar.gz symfony-security-fb7e9db41c92a967194fb26ed4fef4ce95c7cdac.tar.bz2 |
CS: Unary operators should be placed adjacent to their operands
-rw-r--r-- | Acl/Dbal/AclProvider.php | 4 | ||||
-rw-r--r-- | Acl/Domain/Acl.php | 12 | ||||
-rw-r--r-- | Core/Authentication/Token/AbstractToken.php | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/Acl/Dbal/AclProvider.php b/Acl/Dbal/AclProvider.php index 5074614..66db70e 100644 --- a/Acl/Dbal/AclProvider.php +++ b/Acl/Dbal/AclProvider.php @@ -507,8 +507,8 @@ QUERY; $acls = $aces = $emptyArray = array(); $oidCache = $oidLookup; $result = new \SplObjectStorage(); - $loadedAces = & $this->loadedAces; - $loadedAcls = & $this->loadedAcls; + $loadedAces = &$this->loadedAces; + $loadedAcls = &$this->loadedAcls; $permissionGrantingStrategy = $this->permissionGrantingStrategy; // we need these to set protected properties on hydrated objects diff --git a/Acl/Domain/Acl.php b/Acl/Domain/Acl.php index 43ce32a..f8cb519 100644 --- a/Acl/Domain/Acl.php +++ b/Acl/Domain/Acl.php @@ -405,7 +405,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged */ private function deleteAce($property, $index) { - $aces = & $this->$property; + $aces = &$this->$property; if (!isset($aces[$index])) { throw new \OutOfBoundsException(sprintf('The index "%d" does not exist.', $index)); } @@ -431,7 +431,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged */ private function deleteFieldAce($property, $index, $field) { - $aces = & $this->$property; + $aces = &$this->$property; if (!isset($aces[$field][$index])) { throw new \OutOfBoundsException(sprintf('The index "%d" does not exist.', $index)); } @@ -477,7 +477,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged } } - $aces = & $this->$property; + $aces = &$this->$property; $oldValue = $this->$property; if (isset($aces[$index])) { $this->$property = array_merge( @@ -527,7 +527,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged } } - $aces = & $this->$property; + $aces = &$this->$property; if (!isset($aces[$field])) { $aces[$field] = array(); } @@ -565,7 +565,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged */ private function updateAce($property, $index, $mask, $strategy = null) { - $aces = & $this->$property; + $aces = &$this->$property; if (!isset($aces[$index])) { throw new \OutOfBoundsException(sprintf('The index "%d" does not exist.', $index)); } @@ -626,7 +626,7 @@ class Acl implements AuditableAclInterface, NotifyPropertyChanged throw new \InvalidArgumentException('$field cannot be empty.'); } - $aces = & $this->$property; + $aces = &$this->$property; if (!isset($aces[$field][$index])) { throw new \OutOfBoundsException(sprintf('The index "%d" does not exist.', $index)); } diff --git a/Core/Authentication/Token/AbstractToken.php b/Core/Authentication/Token/AbstractToken.php index c239f8c..a71bd06 100644 --- a/Core/Authentication/Token/AbstractToken.php +++ b/Core/Authentication/Token/AbstractToken.php @@ -252,7 +252,7 @@ abstract class AbstractToken implements TokenInterface } if ($this->user instanceof EquatableInterface) { - return ! (bool) $this->user->isEqualTo($user); + return !(bool) $this->user->isEqualTo($user); } if ($this->user->getPassword() !== $user->getPassword()) { |