@@ -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) |
@@ -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)); |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | { |
| 26 | 26 | // convert reference names array into string with Ids, in order to support exclude&include args |
| 27 | 27 | $request = array_map( |
| 28 | - function ($content) { |
|
| 28 | + function($content) { |
|
| 29 | 29 | if (is_array($content)) { |
| 30 | 30 | $result = []; |
| 31 | 31 | foreach ($content as $productName) { |
@@ -43,14 +43,14 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | $data = json_decode($result->getContent(), true); |
| 45 | 45 | $filteredProductsSku = array_map( |
| 46 | - function (array $item) { |
|
| 46 | + function(array $item) { |
|
| 47 | 47 | return $item['sku']; |
| 48 | 48 | }, |
| 49 | 49 | $data['data'] |
| 50 | 50 | ); |
| 51 | 51 | |
| 52 | 52 | $expectedFilteredProductsSku = array_map( |
| 53 | - function ($productName) { |
|
| 53 | + function($productName) { |
|
| 54 | 54 | return $this->getReference($productName)->getSku(); |
| 55 | 55 | }, |
| 56 | 56 | $expectedFilteredProducts |
@@ -126,7 +126,7 @@ |
||
| 126 | 126 | $this->assertJsonResponseStatusCodeEquals($result, 200); |
| 127 | 127 | |
| 128 | 128 | $actualProducts = array_map( |
| 129 | - function ($result) { |
|
| 129 | + function($result) { |
|
| 130 | 130 | return $result->sku; |
| 131 | 131 | }, |
| 132 | 132 | json_decode($result->getContent())->$dataFieldName |
@@ -304,7 +304,7 @@ |
||
| 304 | 304 | */ |
| 305 | 305 | public function iShouldSeePopup($title) |
| 306 | 306 | { |
| 307 | - $popup = $this->spin(function (MinkAwareContext $context) { |
|
| 307 | + $popup = $this->spin(function(MinkAwareContext $context) { |
|
| 308 | 308 | return $context->getSession()->getPage()->find('css', '.popover-content'); |
| 309 | 309 | }); |
| 310 | 310 | |