8000 PSR-2 fixes · symfony/security-acl@5db20f2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5db20f2

Browse files
PSR-2 fixes
1 parent 1d465f3 commit 5db20f2

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Dbal/AclProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function findAcls(array $oids, array $sids = array())
104104
$currentBatch = array();
105105
$oidLookup = array();
106106

107-
for ($i = 0,$c = count($oids); $i<$c; $i++) {
107+
for ($i = 0, $c = count($oids); $i<$c; $i++) {
108108
$oid = $oids[$i];
109109
$oidLookupKey = $oid->getIdentifier().$oid->getType();
110110
$oidLookup[$oidLookupKey] = $oid;

Dbal/MutableAclProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ private function updateNewFieldAceProperty($name, array $changes)
787787
$classIds = new \SplObjectStorage();
788788
$currentIds = array();
789789
foreach ($changes[1] as $field => $new) {
790-
for ($i = 0,$c = count($new); $i<$c; $i++) {
790+
for ($i = 0, $c = count($new); $i<$c; $i++) {
791791
$ace = $new[$i];
792792

793793
if (null === $ace->getId()) {
@@ -864,7 +864,7 @@ private function updateNewAceProperty($name, array $changes)
864864
$sids = new \SplObjectStorage();
865865
$classIds = new \SplObjectStorage();
866866
$currentIds = array();
867-
for ($i = 0,$c = count($new); $i<$c; $i++) {
867+
for ($i = 0, $c = count($new); $i<$c; $i++) {
868868
$ace = $new[$i];
869869

870870
if (null === $ace->getId()) {
@@ -907,7 +907,7 @@ private function updateOldAceProperty($name, array $changes)
907907
list($old, $new) = $changes;
908908
$currentIds = array();
909909

910-
for ($i = 0,$c = count($new); $i<$c; $i++) {
910+
for ($i = 0, $c = count($new); $i<$c; $i++) {
911911
$ace = $new[$i];
912912

913913
if (null !== $ace->getId()) {

Domain/Acl.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ private function deleteAce($property, $index)
414414
$this->$property = array_values($this->$property);
415415
$this->onPropertyChanged($property, $oldValue, $this->$property);
416416

417-
for ($i = $index,$c = count($this->$property); $i<$c; $i++) {
417+
for ($i = $index, $c = count($this->$property); $i<$c; $i++) {
418418
$this->onEntryPropertyChanged($aces[$i], 'aceOrder', $i+1, $i);
419419
}
420420
}
@@ -440,7 +440,7 @@ private function deleteFieldAce($property, $index, $field)
440440
$aces[$field] = array_values($aces[$field]);
441441
$this->onPropertyChanged($property, $oldValue, $this->$property);
442442

443-
for ($i = $index,$c = count($aces[$field]); $i<$c; $i++) {
443+
for ($i = $index, $c = count($aces[$field]); $i<$c; $i++) {
444444
$this->onEntryPropertyChanged($aces[$field][$i], 'aceOrder', $i+1, $i);
445445
}
446446
}
@@ -485,7 +485,7 @@ private function insertAce($property, $index, $mask, SecurityIdentityInterface $
485485
array_slice($this->$property, $index)
486486
);
487487

488-
for ($i = $index,$c = count($this->$property)-1; $i<$c; $i++) {
488+
for ($i = $index, $c = count($this->$property)-1; $i<$c; $i++) {
489489
$this->onEntryPropertyChanged($aces[$i+1], 'aceOrder', $i, $i+1);
490490
}
491491
}
@@ -543,7 +543,7 @@ private function insertFieldAce($property, $index, $field, $mask, SecurityIdenti
543543
array_slice($aces[$field], $index)
544544
);
545545

546-
for ($i = $index,$c = count($aces[$field])-1; $i<$c; $i++) {
546+
for ($i = $index, $c = count($aces[$field])-1; $i<$c; $i++) {
547547
$this->onEntryPropertyChanged($aces[$field][$i+1], 'aceOrder', $i, $i+1);
548548
}
549549
}

0 commit comments

Comments
 (0)
0