Skip to content

Commit 3349345

Browse files
committed
scrutinizer fix
1 parent 126038e commit 3349345

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

RelationTrait.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ public function loadAll($POST, $skippedRelations = [])
5151
$condition = [];
5252
$condition[$relPKAttr[0]] = $this->primaryKey;
5353
foreach ($relPost as $relAttr => $relAttrVal) {
54-
if (in_array($relAttr, $relPKAttr))
54+
if (in_array($relAttr, $relPKAttr)){
5555
$condition[$relAttr] = $relAttrVal;
56+
}
5657
}
5758
$relObj = $relModelClass::findOne($condition);
5859
if (is_null($relObj)) {
@@ -103,8 +104,9 @@ public function saveAll($skippedRelations = [])
103104
/* @var $records ActiveRecord */
104105
foreach ($this->relatedRecords as $name => $records) {
105106

106-
if (in_array($name, $skippedRelations))
107+
if (in_array($name, $skippedRelations)){
107108
continue;
109+
}
108110

109111
if (!empty($records)) {
110112
$AQ = $this->getRelation($name);

0 commit comments

Comments
 (0)