Passed
Push — master ( 6c96cb...56bd83 )
by Alban
02:42
created
src/SaveRelationsBehavior.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -477,10 +477,10 @@  discard block
 block discarded – undo
477 477
     private function _computePkDiff($initialRelations, $updatedRelations, $forceSave = false)
478 478
     {
479 479
         // Compute differences between initial relations and the current ones
480
-        $oldPks = ArrayHelper::getColumn($initialRelations, function (BaseActiveRecord $model) {
480
+        $oldPks = ArrayHelper::getColumn($initialRelations, function(BaseActiveRecord $model) {
481 481
             return implode('-', $model->getPrimaryKey(true));
482 482
         });
483
-        $newPks = ArrayHelper::getColumn($updatedRelations, function (BaseActiveRecord $model) {
483
+        $newPks = ArrayHelper::getColumn($updatedRelations, function(BaseActiveRecord $model) {
484 484
             return implode('-', $model->getPrimaryKey(true));
485 485
         });
486 486
         if ($forceSave) {
@@ -562,7 +562,7 @@  discard block
 block discarded – undo
562 562
         );
563 563
 
564 564
         // Deleted relations
565
-        $initialModels = ArrayHelper::index($this->_oldRelationValue[$relationName], function (BaseActiveRecord $model) {
565
+        $initialModels = ArrayHelper::index($this->_oldRelationValue[$relationName], function(BaseActiveRecord $model) {
566 566
             return implode('-', $model->getPrimaryKey(true));
567 567
         });
568 568
         $initialRelations = $owner->{$relationName};
@@ -573,7 +573,7 @@  discard block
 block discarded – undo
573 573
         // Added relations
574 574
         $actualModels = ArrayHelper::index(
575 575
             $junctionTablePropertiesUsed ? $initialRelations : $owner->{$relationName},
576
-            function (BaseActiveRecord $model) {
576
+            function(BaseActiveRecord $model) {
577 577
                 return implode('-', $model->getPrimaryKey(true));
578 578
             }
579 579
         );
Please login to merge, or discard this patch.