reformat: fix codestyle issues
This commit is contained in:
@@ -289,11 +289,10 @@ class SettingsSerializerService
|
|||||||
throw new InvalidArgumentException('store.product_interaction_mode must be a string');
|
throw new InvalidArgumentException('store.product_interaction_mode must be a string');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($data['product_interaction_mode']) && ! in_array(
|
if (
|
||||||
$data['product_interaction_mode'],
|
isset($data['product_interaction_mode'])
|
||||||
['order', 'manager', 'browser'],
|
&& ! in_array($data['product_interaction_mode'], ['order', 'manager', 'browser'], true)
|
||||||
true
|
) {
|
||||||
)) {
|
|
||||||
throw new InvalidArgumentException(
|
throw new InvalidArgumentException(
|
||||||
'store.product_interaction_mode must be one of: order, manager, browser'
|
'store.product_interaction_mode must be one of: order, manager, browser'
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user