Skip to content

Commit 2180608

Browse files
authored
Fix syntax error
1 parent d49d1cf commit 2180608

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Plugin/App/Request/StorePathInfoValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ private function calculatePreferenceScore(Store $store): int
121121
$website = $store->getWebsite();
122122
if ($website->getIsDefault()) {
123123
// Bonus point for the stores which are part of one of the groups from the default website.
124-
$score = in_array($store->getGroupId(), $website->getGroupIds() ? 2 : 1;
124+
$score = in_array($store->getGroupId(), $website->getGroupIds()) ? 2 : 1;
125125
}
126126
// Extra point for the stores which are part of the default group of its website.
127-
$score += (int)$website->getDefaultGroup()->getDefaultStoreId() === (int)$store->getId() ? 1 : 0
127+
$score += (int)$website->getDefaultGroup()->getDefaultStoreId() === (int)$store->getId() ? 1 : 0;
128128
// Extra point is the store is the default one of its group.
129129
$score += $store->isDefault() ? 1 : 0;
130-
130+
131131
return $score;
132132
}
133133
}

0 commit comments

Comments
 (0)