@@ -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; |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | [$expectedJobName . ':reindex:1'], |
186 | 186 | [$expectedJobName . ':reindex:2'] |
187 | 187 | ) |
188 | - ->willReturnCallback(function ($name, $callback) use (&$i) { |
|
188 | + ->willReturnCallback(function($name, $callback) use (&$i) { |
|
189 | 189 | $delayedJob = $this->getEntity(Job::class, ['id' => ++$i]); |
190 | 190 | return $callback($this->jobRunner, $delayedJob); |
191 | 191 | }); |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | $this->jobRunner->expects($this->once()) |
321 | 321 | ->method('runUnique') |
322 | 322 | ->with('msg-001', $expectedJobName) |
323 | - ->willReturnCallback(function ($jobId, $name, $callback) use ($childJob) { |
|
323 | + ->willReturnCallback(function($jobId, $name, $callback) use ($childJob) { |
|
324 | 324 | return $callback($this->jobRunner, $childJob); |
325 | 325 | }); |
326 | 326 | } |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | $this->jobRunner->expects($this->once()) |
348 | 348 | ->method('createDelayed') |
349 | 349 | ->with($expectedJobName . ':reindex:1') |
350 | - ->willReturnCallback(function ($name, $callback) use (&$i) { |
|
350 | + ->willReturnCallback(function($name, $callback) use (&$i) { |
|
351 | 351 | $delayedJob = $this->getEntity(Job::class, ['id' => ++$i]); |
352 | 352 | return $callback($this->jobRunner, $delayedJob); |
353 | 353 | }); |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | ] |
253 | 253 | ], |
254 | 254 | ], |
255 | - function ($product) { |
|
255 | + function($product) { |
|
256 | 256 | $this->assertInstanceOf('Oro\Bundle\ProductBundle\Entity\Product', $product); |
257 | 257 | |
258 | 258 | /** @var \Oro\Bundle\ProductBundle\Entity\Product $product */ |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | ], |
294 | 294 | ] |
295 | 295 | ], |
296 | - function ($product) { |
|
296 | + function($product) { |
|
297 | 297 | $this->assertInstanceOf('Oro\Bundle\ProductBundle\Entity\Product', $product); |
298 | 298 | |
299 | 299 | /** @var \Oro\Bundle\ProductBundle\Entity\Product $product */ |
@@ -47,7 +47,7 @@ |
||
47 | 47 | |
48 | 48 | static::$testValue = 'test_' . uniqid(); |
49 | 49 | |
50 | - $this->listener = function (ProductSearchQueryRestrictionEvent $event) { |
|
50 | + $this->listener = function(ProductSearchQueryRestrictionEvent $event) { |
|
51 | 51 | $expr = Criteria::expr(); |
52 | 52 | |
53 | 53 | $event->getQuery()->getCriteria()->andWhere($expr->eq('name', self::$testValue)); |