@@ -83,9 +83,9 @@ discard block |
||
| 83 | 83 | |
| 84 | 84 | // prepare input array |
| 85 | 85 | $submitData = [ |
| 86 | - 'titles' => [ 'values' => ['default' => $defaultTitle]], |
|
| 86 | + 'titles' => ['values' => ['default' => $defaultTitle]], |
|
| 87 | 87 | 'shortDescriptions' => ['values' => ['default' => $defaultShortDescription]], |
| 88 | - 'longDescriptions' => ['values' => [ 'default' => $defaultLongDescription]], |
|
| 88 | + 'longDescriptions' => ['values' => ['default' => $defaultLongDescription]], |
|
| 89 | 89 | 'smallImage' => ['file' => $smallImage], |
| 90 | 90 | 'largeImage' => ['file' => $largeImage], |
| 91 | 91 | 'appendProducts' => implode(',', $this->getProductIds($appendedProducts)), |
@@ -145,9 +145,9 @@ discard block |
||
| 145 | 145 | $defaultLongDescription = 'Default Long Description'; |
| 146 | 146 | // prepare input array |
| 147 | 147 | $submitData = [ |
| 148 | - 'titles' => [ 'values' => ['default' => $defaultTitle]], |
|
| 148 | + 'titles' => ['values' => ['default' => $defaultTitle]], |
|
| 149 | 149 | 'shortDescriptions' => ['values' => ['default' => $defaultShortDescription]], |
| 150 | - 'longDescriptions' => ['values' => [ 'default' => $defaultLongDescription]], |
|
| 150 | + 'longDescriptions' => ['values' => ['default' => $defaultLongDescription]], |
|
| 151 | 151 | 'defaultProductOptions' => ['unitPrecision' => ['unit' => 'kg', 'precision' => 3]], |
| 152 | 152 | '_token' => $this->tokenManager->getToken('category')->getValue(), |
| 153 | 153 | ]; |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | implode('","', $expectedCategories) |
| 41 | 41 | ) |
| 42 | 42 | ); |
| 43 | - $categories = array_map(function (NodeElement $categoryElement) { |
|
| 43 | + $categories = array_map(function(NodeElement $categoryElement) { |
|
| 44 | 44 | return $categoryElement->getText(); |
| 45 | 45 | }, $categoryElements); |
| 46 | 46 | self::assertEquals( |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | * @method removeProduct(Product $value) |
| 28 | 28 | * @method ArrayCollection getProducts() |
| 29 | 29 | * @method addProduct(Product $value) |
| 30 | - |
|
| 31 | 30 | */ |
| 32 | 31 | class ExtendCategory |
| 33 | 32 | { |
@@ -27,15 +27,15 @@ |
||
| 27 | 27 | $expressions = []; |
| 28 | 28 | |
| 29 | 29 | foreach ($unitsByProductIds as $productId => $unit) { |
| 30 | - $productIdParamName = 'product_id_'.$productId; |
|
| 30 | + $productIdParamName = 'product_id_' . $productId; |
|
| 31 | 31 | |
| 32 | - $productExpr = $expr->eq('product.id', ':'.$productIdParamName); |
|
| 32 | + $productExpr = $expr->eq('product.id', ':' . $productIdParamName); |
|
| 33 | 33 | |
| 34 | 34 | $qb->setParameter($productIdParamName, $productId); |
| 35 | 35 | |
| 36 | - $unitParamName = 'unit_'.$productId; |
|
| 36 | + $unitParamName = 'unit_' . $productId; |
|
| 37 | 37 | |
| 38 | - $unitExpr = $expr->eq('options.productUnit', ':'.$unitParamName); |
|
| 38 | + $unitExpr = $expr->eq('options.productUnit', ':' . $unitParamName); |
|
| 39 | 39 | $qb->setParameter($unitParamName, $unit); |
| 40 | 40 | |
| 41 | 41 | $expressions[] = $expr->andX($productExpr, $unitExpr); |
@@ -173,8 +173,8 @@ |
||
| 173 | 173 | $translator = $this->createMock(TranslatorInterface::class); |
| 174 | 174 | $translator->expects(static::any()) |
| 175 | 175 | ->method('trans') |
| 176 | - ->will(static::returnCallback(function ($message) { |
|
| 177 | - return $message.'_translated'; |
|
| 176 | + ->will(static::returnCallback(function($message) { |
|
| 177 | + return $message . '_translated'; |
|
| 178 | 178 | })); |
| 179 | 179 | |
| 180 | 180 | /** @var \PHPUnit_Framework_MockObject_MockObject|ShippingMethodChoicesProviderInterface */ |
@@ -97,7 +97,7 @@ |
||
| 97 | 97 | $this->assertEquals($expected->getCountry(), $actual->getCountry()); |
| 98 | 98 | $this->assertEquals($expected->getRegion(), $actual->getRegion()); |
| 99 | 99 | |
| 100 | - $getNames = function (ShippingMethodsConfigsRuleDestinationPostalCode $code) { |
|
| 100 | + $getNames = function(ShippingMethodsConfigsRuleDestinationPostalCode $code) { |
|
| 101 | 101 | return $code->getName(); |
| 102 | 102 | }; |
| 103 | 103 | |
@@ -111,8 +111,8 @@ |
||
| 111 | 111 | $translator = $this->createMock(TranslatorInterface::class); |
| 112 | 112 | $translator->expects(static::any()) |
| 113 | 113 | ->method('trans') |
| 114 | - ->will(static::returnCallback(function ($message) { |
|
| 115 | - return $message.'_translated'; |
|
| 114 | + ->will(static::returnCallback(function($message) { |
|
| 115 | + return $message . '_translated'; |
|
| 116 | 116 | })); |
| 117 | 117 | |
| 118 | 118 | $this->formType = new ShippingMethodsConfigsRuleType(); |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | private function getEntitiesIds(array $entities) |
| 52 | 52 | { |
| 53 | - return array_map(function ($entity) { |
|
| 53 | + return array_map(function($entity) { |
|
| 54 | 54 | return $entity->getId(); |
| 55 | 55 | }, $entities); |
| 56 | 56 | } |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | */ |
| 201 | 201 | protected function getEntitiesByReferences(array $rules) |
| 202 | 202 | { |
| 203 | - return array_map(function ($ruleReference) { |
|
| 203 | + return array_map(function($ruleReference) { |
|
| 204 | 204 | return $this->getReference($ruleReference); |
| 205 | 205 | }, $rules); |
| 206 | 206 | } |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | $values['_widgetContainer'] = 'ajax'; |
| 93 | 93 | $values['_wid'] = 'ajax_checkout'; |
| 94 | 94 | |
| 95 | - $crawler = $this->client->request( |
|
| 95 | + $crawler = $this->client->request( |
|
| 96 | 96 | 'POST', |
| 97 | 97 | $form->getUri(), |
| 98 | 98 | $values, |