@@ -37,7 +37,7 @@ |
||
37 | 37 | $productA = $this->getProduct(['id' => 1]); |
38 | 38 | $productB = $this->getProduct(['id' => 2]); |
39 | 39 | $productC = $this->getProduct(['id' => 3]); |
40 | - $expectedResult =[$productB, $productC]; |
|
40 | + $expectedResult = [$productB, $productC]; |
|
41 | 41 | $this->relatedItemsFunctionalityShouldBeEnabled(); |
42 | 42 | $this->andProductRepositoryShouldFindUpsell($productA, 2, $expectedResult); |
43 | 43 | $this->andShouldNotBeBidirectional(); |
@@ -61,7 +61,7 @@ |
||
61 | 61 | |
62 | 62 | $this->formFactory->expects($this->once()) |
63 | 63 | ->method('createNamed') |
64 | - ->with($fieldName, EnumSelectType::NAME, null, $this->callback(function (array $options) use ($fieldName) { |
|
64 | + ->with($fieldName, EnumSelectType::NAME, null, $this->callback(function(array $options) use ($fieldName) { |
|
65 | 65 | $disabledValues = ['red', 'yellow']; |
66 | 66 | |
67 | 67 | $this->assertEquals([ |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $doctrineHelper->expects($this->any()) |
82 | 82 | ->method('getSingleEntityIdentifier') |
83 | 83 | ->willReturnCallback( |
84 | - function ($variantValue) { |
|
84 | + function($variantValue) { |
|
85 | 85 | return $variantValue->getId(); |
86 | 86 | } |
87 | 87 | ); |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | $this->enumHandler->expects($this->any()) |
479 | 479 | ->method('getPossibleValues') |
480 | 480 | ->willReturnCallback( |
481 | - function ($fieldName) use ($variantsData) { |
|
481 | + function($fieldName) use ($variantsData) { |
|
482 | 482 | return isset($variantsData[$fieldName]['values']) ? $variantsData[$fieldName]['values'] : []; |
483 | 483 | } |
484 | 484 | ); |
@@ -498,10 +498,10 @@ discard block |
||
498 | 498 | ->expects($this->any()) |
499 | 499 | ->method('getSimpleProductsByVariantFieldsQueryBuilder') |
500 | 500 | ->willReturnCallback( |
501 | - function ($configurableProduct, array $variantParameters) use ($simpleProducts) { |
|
501 | + function($configurableProduct, array $variantParameters) use ($simpleProducts) { |
|
502 | 502 | $filteredProducts = array_filter( |
503 | 503 | $simpleProducts, |
504 | - function (Product $simpleProduct) use ($variantParameters) { |
|
504 | + function(Product $simpleProduct) use ($variantParameters) { |
|
505 | 505 | foreach ($variantParameters as $name => $value) { |
506 | 506 | if ($simpleProduct->{$name} != $value) { |
507 | 507 | return false; |
@@ -176,7 +176,7 @@ |
||
176 | 176 | $entityNameResolver->expects($this->any()) |
177 | 177 | ->method('getName') |
178 | 178 | ->willReturnCallback( |
179 | - function ($entity, $format, $locale) { |
|
179 | + function($entity, $format, $locale) { |
|
180 | 180 | return (string)$entity . '_' . $locale; |
181 | 181 | } |
182 | 182 | ); |
@@ -88,7 +88,7 @@ |
||
88 | 88 | ->with(['image' => $initialResults['id']]) |
89 | 89 | ->willReturn($productImage); |
90 | 90 | |
91 | - $entityConfig = new EntityDefinitionConfig(); |
|
91 | + $entityConfig = new EntityDefinitionConfig(); |
|
92 | 92 | $entityConfig->addField('filePath'); |
93 | 93 | $entityConfig->addField('mimeType'); |
94 | 94 | $entityConfig->addField('id'); |
@@ -127,7 +127,7 @@ |
||
127 | 127 | ->method('setObjectValue') |
128 | 128 | ->will( |
129 | 129 | $this->returnCallback( |
130 | - function (ProductImage $result, $fieldName, $value) { |
|
130 | + function(ProductImage $result, $fieldName, $value) { |
|
131 | 131 | return $result->{'add' . ucfirst(substr($fieldName, 0, -1))}(reset($value)); |
132 | 132 | } |
133 | 133 | ) |
@@ -166,7 +166,7 @@ |
||
166 | 166 | $this->listener->onBuildBeforeHideUnsuitable($event); |
167 | 167 | |
168 | 168 | $expectedConfigValue = $this->getInitConfig(); |
169 | - $this->setValueByPath($expectedConfigValue, '[source][query][where][and]', ['1 = 0' ]); |
|
169 | + $this->setValueByPath($expectedConfigValue, '[source][query][where][and]', ['1 = 0']); |
|
170 | 170 | |
171 | 171 | $this->setValueByPath($expectedConfigValue, '[source][query][where][or]', [ |
172 | 172 | sprintf('%s.id IS NOT NULL', self::PRODUCT_VARIANT_LINK_ALIAS) |
@@ -9,7 +9,7 @@ |
||
9 | 9 | use Oro\Bundle\ProductBundle\EventListener\ScopedProductSearchQueryRestrictionEventListener; |
10 | 10 | |
11 | 11 | class ScopedProductSearchQueryRestrictionEventListenerTest extends |
12 | - AbstractProductSearchQueryRestrictionEventListenerTest |
|
12 | + AbstractProductSearchQueryRestrictionEventListenerTest |
|
13 | 13 | { |
14 | 14 | const SCOPE = 'test_scope'; |
15 | 15 |
@@ -70,7 +70,7 @@ |
||
70 | 70 | |
71 | 71 | $this->doctrineHelper->expects($this->any()) |
72 | 72 | ->method('getEntityRepositoryForClass') |
73 | - ->willReturnCallback(function ($class) { |
|
73 | + ->willReturnCallback(function($class) { |
|
74 | 74 | switch ($class) { |
75 | 75 | case AttributeGroupRelation::class: |
76 | 76 | return $this->attributeRelationRepository; |