@@ -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 | ); |
@@ -84,7 +84,7 @@ |
||
84 | 84 | if ($category->getLevel() !== 0 && (!$categoryIds || in_array($category->getId(), $categoryIds, true))) { |
85 | 85 | $data[] = [ |
86 | 86 | 'id' => $category->getId(), |
87 | - 'title' => (string) $this->localizationHelper->getLocalizedValue($category->getTitles()), |
|
87 | + 'title' => (string)$this->localizationHelper->getLocalizedValue($category->getTitles()), |
|
88 | 88 | 'small_image' => $category->getSmallImage(), |
89 | 89 | ]; |
90 | 90 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | const ORO_CATALOG_CATEGORY_SHORT_DESCRIPTION_TABLE_NAME = 'oro_catalog_cat_short_desc'; |
36 | 36 | const ORO_CATALOG_CATEGORY_LONG_DESCRIPTION_TABLE_NAME = 'oro_catalog_cat_long_desc'; |
37 | 37 | const ORO_CATALOG_CATEGORY_TABLE_NAME = 'oro_catalog_category'; |
38 | - const ORO_FALLBACK_LOCALIZE_TABLE_NAME ='oro_fallback_localization_val'; |
|
38 | + const ORO_FALLBACK_LOCALIZE_TABLE_NAME = 'oro_fallback_localization_val'; |
|
39 | 39 | const ORO_CATEGORY_DEFAULT_PRODUCT_OPTIONS_TABLE_NAME = 'oro_category_def_prod_opts'; |
40 | 40 | const ORO_PRODUCT_UNIT_TABLE_NAME = 'oro_product_unit'; |
41 | 41 | const MAX_CATEGORY_IMAGE_SIZE_IN_MB = 10; |