@@ -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; |
@@ -364,7 +364,7 @@ |
||
| 364 | 364 | |
| 365 | 365 | $em->expects($this->once()) |
| 366 | 366 | ->method('flush') |
| 367 | - ->willReturnCallback(function () use ($event) { |
|
| 367 | + ->willReturnCallback(function() use ($event) { |
|
| 368 | 368 | $this->listener->preFlush($event); |
| 369 | 369 | }); |
| 370 | 370 | |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | |
| 71 | 71 | $this->categoryRepository->expects($this->once()) |
| 72 | 72 | ->method('findOneByProduct') |
| 73 | - ->will($this->returnCallback(function () { |
|
| 73 | + ->will($this->returnCallback(function() { |
|
| 74 | 74 | $args = func_get_args(); |
| 75 | 75 | $product = $args[0]; |
| 76 | 76 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | ->expects($this->any()) |
| 73 | 73 | ->method('findOneByProductSku') |
| 74 | 74 | ->willReturnCallback( |
| 75 | - function ($sku) { |
|
| 75 | + function($sku) { |
|
| 76 | 76 | if (!isset($this->categoriesByProduct[$sku])) { |
| 77 | 77 | return null; |
| 78 | 78 | } |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | ->expects($this->any()) |
| 88 | 88 | ->method('findOneByDefaultTitle') |
| 89 | 89 | ->willReturnCallback( |
| 90 | - function ($title) { |
|
| 90 | + function($title) { |
|
| 91 | 91 | if (!isset($this->categoriesByTitle[$title])) { |
| 92 | 92 | return null; |
| 93 | 93 | } |
@@ -171,10 +171,10 @@ |
||
| 171 | 171 | $expected[$product->getId()] = [ |
| 172 | 172 | 'category_id' => [ |
| 173 | 173 | ['value' => 555, 'all_text' => false], |
| 174 | - ], |
|
| 174 | + ], |
|
| 175 | 175 | 'category_path' => [ |
| 176 | 176 | ['value' => '1_555', 'all_text' => false], |
| 177 | - ], |
|
| 177 | + ], |
|
| 178 | 178 | 'category_path_' . CategoryPathPlaceholder::NAME => [ |
| 179 | 179 | [ |
| 180 | 180 | 'value' => new PlaceholderValue(1, [CategoryPathPlaceholder::NAME => '1']), |
@@ -381,7 +381,7 @@ |
||
| 381 | 381 | ], |
| 382 | 382 | 'sorting' => [ |
| 383 | 383 | [ |
| 384 | - '_sort_by' => [ 'field' => 'ASC' ] |
|
| 384 | + '_sort_by' => ['field' => 'ASC'] |
|
| 385 | 385 | ] |
| 386 | 386 | ], |
| 387 | 387 | 'mixed' => [ |