Passed
Pull Request — master (#67)
by
unknown
08:46
created
src/SaveRelationsBehavior.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -735,7 +735,9 @@
 block discarded – undo
735 735
         /** @var BaseActiveRecord $owner */
736 736
         $owner = $this->owner;
737 737
         foreach ($this->_relations as $relationName) {
738
-            if($this->checkRelationsSafe && !$owner->isAttributeSafe($relationName)) continue;
738
+            if($this->checkRelationsSafe && !$owner->isAttributeSafe($relationName)) {
739
+                continue;
740
+            }
739 741
             $keyName = $this->_getRelationKeyName($relationName);
740 742
             if (array_key_exists($keyName, $data)) {
741 743
                 $owner->{$relationName} = $data[$keyName];
Please login to merge, or discard this patch.