@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | { |
| 36 | 36 | $this->assertExportTemplateWorks( |
| 37 | 37 | $this->getPriceAttributeProductPriceConfiguration(), |
| 38 | - __DIR__.'/data/price_attribute_product_price/export_template.csv' |
|
| 38 | + __DIR__ . '/data/price_attribute_product_price/export_template.csv' |
|
| 39 | 39 | ); |
| 40 | 40 | } |
| 41 | 41 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | { |
| 44 | 44 | $this->assertExportWorks( |
| 45 | 45 | $this->getPriceAttributeProductPriceConfiguration(), |
| 46 | - __DIR__.'/data/price_attribute_product_price/export.csv' |
|
| 46 | + __DIR__ . '/data/price_attribute_product_price/export.csv' |
|
| 47 | 47 | ); |
| 48 | 48 | } |
| 49 | 49 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | { |
| 52 | 52 | $this->assertImportWorks( |
| 53 | 53 | $this->getPriceAttributeProductPriceConfiguration(), |
| 54 | - __DIR__.'/data/price_attribute_product_price/import.csv' |
|
| 54 | + __DIR__ . '/data/price_attribute_product_price/import.csv' |
|
| 55 | 55 | ); |
| 56 | 56 | |
| 57 | 57 | $this->assertImportedDataValid(); |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | $this->assertImportWorks( |
| 77 | 77 | $configuration, |
| 78 | - __DIR__.'/data/price_attribute_product_price/import_reset_and_add.csv' |
|
| 78 | + __DIR__ . '/data/price_attribute_product_price/import_reset_and_add.csv' |
|
| 79 | 79 | ); |
| 80 | 80 | |
| 81 | 81 | $this->assertResetAndAddValid(); |
@@ -90,8 +90,8 @@ discard block |
||
| 90 | 90 | { |
| 91 | 91 | $this->assertImportValidateWorks( |
| 92 | 92 | $this->getPriceAttributeProductPriceConfiguration(), |
| 93 | - __DIR__.'/data/price_attribute_product_price/import_wrong_data.csv', |
|
| 94 | - __DIR__.'/data/price_attribute_product_price/import_validation_errors.json' |
|
| 93 | + __DIR__ . '/data/price_attribute_product_price/import_wrong_data.csv', |
|
| 94 | + __DIR__ . '/data/price_attribute_product_price/import_validation_errors.json' |
|
| 95 | 95 | ); |
| 96 | 96 | } |
| 97 | 97 | |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | ); |
| 129 | 129 | static::assertCount(0, $crawler->filter('.sidebar-items .currencies input[type=checkbox][checked=checked]')); |
| 130 | 130 | $crawler->filter('.sidebar-items .currencies input[type=checkbox]')->each( |
| 131 | - function (Crawler $node) use ($priceList) { |
|
| 131 | + function(Crawler $node) use ($priceList) { |
|
| 132 | 132 | static::assertContains($node->attr('value'), $priceList->getCurrencies()); |
| 133 | 133 | static::assertEmpty($node->attr('checked')); |
| 134 | 134 | } |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | $crawler->filter('.sidebar-items .currencies input[type=checkbox][checked=checked]') |
| 168 | 168 | ); |
| 169 | 169 | $crawler->filter('.sidebar-items .currencies input[type=checkbox]')->each( |
| 170 | - function (Crawler $node) use ($priceList) { |
|
| 170 | + function(Crawler $node) use ($priceList) { |
|
| 171 | 171 | static::assertContains($node->attr('value'), $priceList->getCurrencies()); |
| 172 | 172 | static::assertNotEmpty($node->attr('checked')); |
| 173 | 173 | } |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | $crawler->filter('.sidebar-items .currencies input[type=checkbox][checked=checked]') |
| 204 | 204 | ); |
| 205 | 205 | $crawler->filter('.sidebar-items .currencies input[type=checkbox]')->each( |
| 206 | - function (Crawler $node) use ($priceList, $selectedCurrencies) { |
|
| 206 | + function(Crawler $node) use ($priceList, $selectedCurrencies) { |
|
| 207 | 207 | static::assertContains($node->attr('value'), $priceList->getCurrencies()); |
| 208 | 208 | |
| 209 | 209 | if (in_array($node->attr('value'), $selectedCurrencies, true)) { |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | $this->assertArrayHasKey('redirectUrl', $data); |
| 410 | 410 | |
| 411 | 411 | $this->client->request('GET', $data['redirectUrl']); |
| 412 | - $newProduct = $this->getProductDataBySku($product->getSku().'-1'); |
|
| 412 | + $newProduct = $this->getProductDataBySku($product->getSku() . '-1'); |
|
| 413 | 413 | |
| 414 | 414 | $shardManager = $this->getContainer()->get('oro_pricing.shard_manager'); |
| 415 | 415 | /** @var ProductPriceRepository $productPriceRepository */ |
@@ -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 | } |