Skip to content

Commit 85fb0e0

Browse files
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
1 parent 3349345 commit 85fb0e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

RelationTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ 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;
5656
}
5757
}
@@ -104,7 +104,7 @@ public function saveAll($skippedRelations = [])
104104
/* @var $records ActiveRecord */
105105
foreach ($this->relatedRecords as $name => $records) {
106106

107-
if (in_array($name, $skippedRelations)){
107+
if (in_array($name, $skippedRelations)) {
108108
continue;
109109
}
110110

@@ -397,7 +397,7 @@ public function initI18N()
397397
];
398398
$globalConfig = ArrayHelper::getValue(Yii::$app->i18n->translations, "mtrelt*", []);
399399
if (!empty($globalConfig)) {
400-
$config = array_merge($config, is_array($globalConfig) ? $globalConfig : (array)$globalConfig);
400+
$config = array_merge($config, is_array($globalConfig) ? $globalConfig : (array) $globalConfig);
401401
}
402402
Yii::$app->i18n->translations["mtrelt*"] = $config;
403403
}

0 commit comments

Comments
 (0)