@@ -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 | |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | |
| 74 | 74 | $productId = null; |
| 75 | 75 | if ($product) { |
| 76 | - $productId = is_array($product) ? $product['id'] : $product->getId(); |
|
| 76 | + $productId = is_array($product) ? $product['id'] : $product->getId(); |
|
| 77 | 77 | } |
| 78 | 78 | if ($productId) { |
| 79 | 79 | $form->vars['id'] = sprintf('%s-product-id-%s', $form->vars['_notUniqueId'], $productId); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | $doctrineHelper = $this->getContainer()->get('oro_entity.doctrine_helper'); |
| 68 | 68 | $className = $this->getContainer()->getParameter('oro_product.entity.product_image.class'); |
| 69 | - $queryBuilder = $doctrineHelper |
|
| 69 | + $queryBuilder = $doctrineHelper |
|
| 70 | 70 | ->getEntityRepositoryForClass($className) |
| 71 | 71 | ->createQueryBuilder('productImage'); |
| 72 | 72 | |
@@ -85,6 +85,6 @@ discard block |
||
| 85 | 85 | */ |
| 86 | 86 | protected function getForceOption(InputInterface $input) |
| 87 | 87 | { |
| 88 | - return (bool) $input->getOption(self::OPTION_FORCE); |
|
| 88 | + return (bool)$input->getOption(self::OPTION_FORCE); |
|
| 89 | 89 | } |
| 90 | 90 | } |
@@ -133,8 +133,8 @@ |
||
| 133 | 133 | $this->assertTrue(isset($actualCheckouts[$id])); |
| 134 | 134 | $actualCheckout = $actualCheckouts[$id]; |
| 135 | 135 | $this->assertEquals( |
| 136 | - (float) $actualCheckout['subtotal'] + (float) $actualCheckout['shippingCost'], |
|
| 137 | - (float) $actualCheckout['total'] |
|
| 136 | + (float)$actualCheckout['subtotal'] + (float)$actualCheckout['shippingCost'], |
|
| 137 | + (float)$actualCheckout['total'] |
|
| 138 | 138 | ); |
| 139 | 139 | } |
| 140 | 140 | } |
@@ -173,7 +173,7 @@ |
||
| 173 | 173 | protected function getExistingSlugs(SlugUrl $slugUrl, Collection $slugs) |
| 174 | 174 | { |
| 175 | 175 | return $slugs->filter( |
| 176 | - function (Slug $slug) use ($slugUrl) { |
|
| 176 | + function(Slug $slug) use ($slugUrl) { |
|
| 177 | 177 | return $slugUrl->getUrl() === $slug->getUrl() |
| 178 | 178 | && $slugUrl->getLocalization() === $slug->getLocalization(); |
| 179 | 179 | } |
@@ -118,12 +118,12 @@ |
||
| 118 | 118 | { |
| 119 | 119 | $classes = array_filter( |
| 120 | 120 | array_map( |
| 121 | - function (ClassMetadata $metadata) { |
|
| 121 | + function(ClassMetadata $metadata) { |
|
| 122 | 122 | return $metadata->getName(); |
| 123 | 123 | }, |
| 124 | 124 | $manager->getMetadataFactory()->getAllMetadata() |
| 125 | 125 | ), |
| 126 | - function ($class) { |
|
| 126 | + function($class) { |
|
| 127 | 127 | return is_subclass_of($class, SluggableInterface::class); |
| 128 | 128 | } |
| 129 | 129 | ); |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | $this->restrictByEntitySlugs($qb, $restrictedEntity); |
| 78 | 78 | |
| 79 | 79 | return array_map( |
| 80 | - function ($item) { |
|
| 80 | + function($item) { |
|
| 81 | 81 | return $item['url']; |
| 82 | 82 | }, |
| 83 | 83 | $qb->getQuery()->getArrayResult() |