Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit 25e914f

Browse files
committed
minor #14090 CS: Unary operators should be placed adjacent to their operands (keradus)
This PR was merged into the 2.3 branch. Discussion ---------- CS: Unary operators should be placed adjacent to their operands | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | ? | Fixed tickets | N/A | License | MIT | Doc PR | N/A Update before upcoming changes on PHP CS Fixer 1.7 To keep fabbot.io happy ;) Commits ------- 2367f4a CS: Unary operators should be placed adjacent to their operands
2 parents 18435f2 + fb7e9db commit 25e914f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Acl/Dbal/AclProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,8 @@ private function hydrateObjectIdentities(Statement $stmt, array $oidLookup, arra
507507
$acls = $aces = $emptyArray = array();
508508
$oidCache = $oidLookup;
509509
$result = new \SplObjectStorage();
510-
$loadedAces = & $this->loadedAces;
511-
$loadedAcls = & $this->loadedAcls;
510+
$loadedAces = &$this->loadedAces;
511+
$loadedAcls = &$this->loadedAcls;
512512
$permissionGrantingStrategy = $this->permissionGrantingStrategy;
513513

514514
// we need these to set protected properties on hydrated objects

Acl/Domain/Acl.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ public function updateObjectFieldAuditing($index, $field, $auditSuccess, $auditF
405405
*/
406406
private function deleteAce($property, $index)
407407
{
408-
$aces = & $this->$property;
408+
$aces = &$this->$property;
409409
if (!isset($aces[$index])) {
410410
throw new \OutOfBoundsException(sprintf('The index "%d" does not exist.', $index));
411411
}
@@ -431,7 +431,7 @@ private function deleteAce($property, $index)
431431
*/
432432
private function deleteFieldAce($property, $index, $field)
433433
{
434-
$aces = & $this->$property;
434+
$aces = &$this->$property;
435435
if (!isset($aces[$field][$index])) {
436436
throw new \OutOfBoundsException(sprintf('The index "%d" does not exist.', $index));
437437
}
@@ -477,7 +477,7 @@ private function insertAce($property, $index, $mask, SecurityIdentityInterface $
477477
}
478478
}
479479

480-
$aces = & $this->$property;
480+
$aces = &$this->$property;
481481
$oldValue = $this->$property;
482482
if (isset($aces[$index])) {
483483
$this->$property = array_merge(
@@ -527,7 +527,7 @@ private function insertFieldAce($property, $index, $field, $mask, SecurityIdenti
527527
}
528528
}
529529

530-
$aces = & $this->$property;
530+
$aces = &$this->$property;
531531
if (!isset($aces[$field])) {
532532
$aces[$field] = array();
533533
}
@@ -565,7 +565,7 @@ private function insertFieldAce($property, $index, $field, $mask, SecurityIdenti
565565
*/
566566
private function updateAce($property, $index, $mask, $strategy = null)
567567
{
568-
$aces = & $this->$property;
568+
$aces = &$this->$property;
569569
if (!isset($aces[$index])) {
570570
throw new \OutOfBoundsException(sprintf('The index "%d" does not exist.', $index));
571571
}
@@ -626,7 +626,7 @@ private function updateFieldAce($property, $index, $field, $mask, $strategy = nu
626626
throw new \InvalidArgumentException('$field cannot be empty.');
627627
}
628628

629-
$aces = & $this->$property;
629+
$aces = &$this->$property;
630630
if (!isset($aces[$field][$index])) {
631631
throw new \OutOfBoundsException(sprintf('The index "%d" does not exist.', $index));
632632
}

Core/Authentication/Token/AbstractToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ private function hasUserChanged(UserInterface $user)
252252
}
253253

254254
if ($this->user instanceof EquatableInterface) {
255-
return ! (bool) $this->user->isEqualTo($user);
255+
return !(bool) $this->user->isEqualTo($user);
256256
}
257257

258258
if ($this->user->getPassword() !== $user->getPassword()) {

0 commit comments

Comments
 (0)