File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments