@@ -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 | |
@@ -35,9 +35,9 @@ |
||
| 35 | 35 | $currentBundleDataFixturesNameSpace = 'Oro\Bundle\PaymentBundle\Tests\Functional'; |
| 36 | 36 | $this->loadFixtures( |
| 37 | 37 | [ |
| 38 | - $currentBundleDataFixturesNameSpace.'\Entity\DataFixtures\LoadPaymentMethodsConfigsRuleData', |
|
| 39 | - $currentBundleDataFixturesNameSpace.'\Entity\DataFixtures\LoadPaymentMethodsConfigsRuleDestinationData', |
|
| 40 | - $currentBundleDataFixturesNameSpace.'\DataFixtures\LoadUserData', |
|
| 38 | + $currentBundleDataFixturesNameSpace . '\Entity\DataFixtures\LoadPaymentMethodsConfigsRuleData', |
|
| 39 | + $currentBundleDataFixturesNameSpace . '\Entity\DataFixtures\LoadPaymentMethodsConfigsRuleDestinationData', |
|
| 40 | + $currentBundleDataFixturesNameSpace . '\DataFixtures\LoadUserData', |
|
| 41 | 41 | LoadChannelData::class |
| 42 | 42 | ] |
| 43 | 43 | ); |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | $productsChangedRelation = []; |
| 33 | 33 | |
| 34 | 34 | /** @var Product $entity */ |
| 35 | - foreach ((array) $unitOfWork->getScheduledEntityUpdates() as $entity) { |
|
| 35 | + foreach ((array)$unitOfWork->getScheduledEntityUpdates() as $entity) { |
|
| 36 | 36 | if ($entity instanceof Product && $this->isCategoryChanged($unitOfWork, $entity)) { |
| 37 | 37 | $productsChangedRelation[] = $entity; |
| 38 | 38 | } |
@@ -173,7 +173,7 @@ |
||
| 173 | 173 | // filter for only those websites which have current `$webCatalogId` assigned |
| 174 | 174 | $relatedWebsiteIds = array_filter( |
| 175 | 175 | $assignedWebCatalogs, |
| 176 | - function ($relatedWebsiteWebCatalogId) use ($webCatalogId) { |
|
| 176 | + function($relatedWebsiteWebCatalogId) use ($webCatalogId) { |
|
| 177 | 177 | return $webCatalogId == $relatedWebsiteWebCatalogId; |
| 178 | 178 | } |
| 179 | 179 | ); |