@@ -253,7 +253,7 @@ public function updateAcl(MutableAclInterface $acl)
253
253
}
254
254
255
255
// check properties for deleted, and created ACEs, and perform deletions
256
- // we need to perfom deletions before updating existing ACEs, in order to
256
+ // we need to perform deletions before updating existing ACEs, in order to
257
257
// preserve uniqueness of the order field
258
258
if (isset ($ propertyChanges ['classAces ' ])) {
259
259
$ this ->updateOldAceProperty ('classAces ' , $ propertyChanges ['classAces ' ]);
@@ -360,7 +360,7 @@ public function updateAcl(MutableAclInterface $acl)
360
360
protected function getDeleteAccessControlEntriesSql ($ oidPK )
361
361
{
362
362
return sprintf (
363
- 'DELETE FROM %s WHERE object_identity_id = %d ' ,
363
+ 'DELETE FROM %s WHERE object_identity_id = %d ' ,
364
364
$ this ->options ['entry_table_name ' ],
365
365
$ oidPK
366
366
);
@@ -806,7 +806,7 @@ private function updateNewFieldAceProperty($name, array $changes)
806
806
* @param string $name
807
807
* @param array $changes
808
808
*/
809
- private function updateOldFieldAceProperty ($ ane , array $ changes )
809
+ private function updateOldFieldAceProperty ($ name , array $ changes )
810
810
{
811
811
$ currentIds = array ();
812
812
foreach ($ changes [1 ] as $ field => $ new ) {
@@ -925,11 +925,12 @@ private function updateAce(\SplObjectStorage $aces, $ace)
925
925
if (isset ($ propertyChanges ['aceOrder ' ])
926
926
&& $ propertyChanges ['aceOrder ' ][1 ] > $ propertyChanges ['aceOrder ' ][0 ]
927
927
&& $ propertyChanges == $ aces ->offsetGet ($ ace )) {
928
- $ aces ->next ();
929
- if ($ aces ->valid ()) {
928
+
929
+ $ aces ->next ();
930
+ if ($ aces ->valid ()) {
930
931
$ this ->updateAce ($ aces , $ aces ->current ());
931
- }
932
932
}
933
+ }
933
934
934
935
if (isset ($ propertyChanges ['mask ' ])) {
935
936
$ sets [] = sprintf ('mask = %d ' , $ propertyChanges ['mask ' ][1 ]);
@@ -949,5 +950,4 @@ private function updateAce(\SplObjectStorage $aces, $ace)
949
950
950
951
$ this ->connection ->executeQuery ($ this ->getUpdateAccessControlEntrySql ($ ace ->getId (), $ sets ));
951
952
}
952
-
953
953
}
0 commit comments