@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | $actualPriceListsToCustomerGroup = $this->getRepository()->getPriceLists($customerGroup, $website); |
| 122 | 122 | |
| 123 | 123 | $actualPriceLists = array_map( |
| 124 | - function (PriceListToCustomerGroup $priceListToCustomerGroup) { |
|
| 124 | + function(PriceListToCustomerGroup $priceListToCustomerGroup) { |
|
| 125 | 125 | return $priceListToCustomerGroup->getPriceList()->getName(); |
| 126 | 126 | }, |
| 127 | 127 | $actualPriceListsToCustomerGroup |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | } |
| 247 | 247 | $relations = $this->getRepository()->getRelationsByHolders($customersObjects); |
| 248 | 248 | $relations = array_map( |
| 249 | - function (PriceListToCustomerGroup $relation) { |
|
| 249 | + function(PriceListToCustomerGroup $relation) { |
|
| 250 | 250 | return [ |
| 251 | 251 | $relation->getCustomerGroup()->getName(), |
| 252 | 252 | $relation->getWebsite()->getName(), |
@@ -132,7 +132,7 @@ |
||
| 132 | 132 | */ |
| 133 | 133 | $priceList = $this->getReference($priceList); |
| 134 | 134 | $productIds = array_map( |
| 135 | - function ($product) { |
|
| 135 | + function($product) { |
|
| 136 | 136 | return $this->getReference($product)->getId(); |
| 137 | 137 | }, |
| 138 | 138 | $products |
@@ -37,13 +37,13 @@ |
||
| 37 | 37 | |
| 38 | 38 | if ($expectedPriceLists) { |
| 39 | 39 | $actualPriceLists = array_map( |
| 40 | - function (CombinedPriceListToPriceList $relation) { |
|
| 40 | + function(CombinedPriceListToPriceList $relation) { |
|
| 41 | 41 | return $relation->getPriceList()->getId(); |
| 42 | 42 | }, |
| 43 | 43 | $priceListsRelations |
| 44 | 44 | ); |
| 45 | 45 | $expectedPriceLists = array_map( |
| 46 | - function ($priceListReference) { |
|
| 46 | + function($priceListReference) { |
|
| 47 | 47 | return $this->getReference($priceListReference)->getId(); |
| 48 | 48 | }, |
| 49 | 49 | $expectedPriceLists |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | if ($this->isOutputEnabled()) { |
| 115 | 115 | $this->output->writeln( |
| 116 | - 'Processing combined price list id: '.$combinedPriceList->getId().' - '.$combinedPriceList->getName(), |
|
| 116 | + 'Processing combined price list id: ' . $combinedPriceList->getId() . ' - ' . $combinedPriceList->getName(), |
|
| 117 | 117 | OutputInterface::VERBOSITY_VERBOSE |
| 118 | 118 | ); |
| 119 | 119 | $progressBar = new ProgressBar($this->output, count($priceListsRelations)); |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | $progressBar->setProgress($i); |
| 126 | 126 | $progressBar->clear(); |
| 127 | 127 | $this->output->writeln( |
| 128 | - 'Processing price list: '.$priceListRelation->getPriceList()->getName(), |
|
| 128 | + 'Processing price list: ' . $priceListRelation->getPriceList()->getName(), |
|
| 129 | 129 | OutputInterface::VERBOSITY_VERY_VERBOSE |
| 130 | 130 | ); |
| 131 | 131 | $progressBar->display(); |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | if ($this->isOutputEnabled()) { |
| 141 | 141 | $progressBar->finish(); |
| 142 | 142 | $this->output->writeln( |
| 143 | - '<info> - Finished processing combined price list id: '.$combinedPriceList->getId().'</info>', |
|
| 143 | + '<info> - Finished processing combined price list id: ' . $combinedPriceList->getId() . '</info>', |
|
| 144 | 144 | OutputInterface::VERBOSITY_VERBOSE |
| 145 | 145 | ); |
| 146 | 146 | } |
@@ -753,7 +753,7 @@ discard block |
||
| 753 | 753 | 'is_extend' => true, |
| 754 | 754 | ], |
| 755 | 755 | 'datagrid' => ['is_visible' => false], |
| 756 | - 'form' => ['is_enabled' => false,], |
|
| 756 | + 'form' => ['is_enabled' => false, ], |
|
| 757 | 757 | 'view' => ['is_displayable' => false], |
| 758 | 758 | 'merge' => ['display' => false], |
| 759 | 759 | 'dataaudit' => ['auditable' => true], |
@@ -782,7 +782,7 @@ discard block |
||
| 782 | 782 | 'is_extend' => true, |
| 783 | 783 | ], |
| 784 | 784 | 'datagrid' => ['is_visible' => false], |
| 785 | - 'form' => ['is_enabled' => false,], |
|
| 785 | + 'form' => ['is_enabled' => false, ], |
|
| 786 | 786 | 'view' => ['is_displayable' => false], |
| 787 | 787 | 'merge' => ['display' => false], |
| 788 | 788 | 'dataaudit' => ['auditable' => true], |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | |
| 46 | 46 | $builder->expects($this->once()) |
| 47 | 47 | ->method('add') |
| 48 | - ->will($this->returnCallback(function ($name, $type, $options) use ($phpunitTestCase, $processorAliases) { |
|
| 48 | + ->will($this->returnCallback(function($name, $type, $options) use ($phpunitTestCase, $processorAliases) { |
|
| 49 | 49 | $choices = $options['choices']; |
| 50 | 50 | $phpunitTestCase->assertArrayHasKey( |
| 51 | 51 | $processorAliases[0], |
@@ -195,7 +195,7 @@ |
||
| 195 | 195 | $this->equalTo(LowInventoryProvider::LOW_INVENTORY_THRESHOLD_OPTION) |
| 196 | 196 | )) |
| 197 | 197 | ->will($this->returnCallback( |
| 198 | - function (Product $product, $option) use ($highlightLowInventory, $lowInventoryThreshold) { |
|
| 198 | + function(Product $product, $option) use ($highlightLowInventory, $lowInventoryThreshold) { |
|
| 199 | 199 | if ($option === LowInventoryProvider::HIGHLIGHT_LOW_INVENTORY_OPTION) { |
| 200 | 200 | return $highlightLowInventory[$product->getId()]; |
| 201 | 201 | } |
@@ -227,7 +227,7 @@ |
||
| 227 | 227 | $em = $this->doctrineHelper->getEntityManager($paymentTransaction); |
| 228 | 228 | try { |
| 229 | 229 | $em->transactional( |
| 230 | - function (EntityManagerInterface $em) use ($paymentTransaction) { |
|
| 230 | + function(EntityManagerInterface $em) use ($paymentTransaction) { |
|
| 231 | 231 | if (!$paymentTransaction->getId()) { |
| 232 | 232 | $em->persist($paymentTransaction); |
| 233 | 233 | } |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | $this->assertEquals($expected->getCountry(), $actual->getCountry()); |
| 101 | 101 | $this->assertEquals($expected->getRegion(), $actual->getRegion()); |
| 102 | 102 | |
| 103 | - $getNames = function (PaymentMethodsConfigsRuleDestinationPostalCode $code) { |
|
| 103 | + $getNames = function(PaymentMethodsConfigsRuleDestinationPostalCode $code) { |
|
| 104 | 104 | return $code->getName(); |
| 105 | 105 | }; |
| 106 | 106 | |