@@ -32,16 +32,16 @@ discard block |
||
| 32 | 32 | public function getMap(): array |
| 33 | 33 | { |
| 34 | 34 | return [ |
| 35 | - 'taxSetName' => function ($item) { |
|
| 35 | + 'taxSetName' => function($item) { |
|
| 36 | 36 | return $this->config->getDefaultTaxSet(); |
| 37 | 37 | }, |
| 38 | - 'new_from' => function ($item) { |
|
| 38 | + 'new_from' => function($item) { |
|
| 39 | 39 | return null; |
| 40 | 40 | }, |
| 41 | - 'new_to' => function ($item) { |
|
| 41 | + 'new_to' => function($item) { |
|
| 42 | 42 | return null; |
| 43 | 43 | }, |
| 44 | - 'category_product_order' => function ($item) { |
|
| 44 | + 'category_product_order' => function($item) { |
|
| 45 | 45 | return 0; |
| 46 | 46 | }, |
| 47 | 47 | 'abstract_sku' => 'code', |
@@ -54,10 +54,10 @@ discard block |
||
| 54 | 54 | 'localizedAttributes' => [ |
| 55 | 55 | 'values.localizedAttributes', |
| 56 | 56 | ], |
| 57 | - 'color_code' => function ($item) { |
|
| 57 | + 'color_code' => function($item) { |
|
| 58 | 58 | return ''; |
| 59 | 59 | }, |
| 60 | - 'stores' => function ($item) { |
|
| 60 | + 'stores' => function($item) { |
|
| 61 | 61 | return $this->config->getDefaultStoresForProducts(); |
| 62 | 62 | }, |
| 63 | 63 | ]; |
@@ -22,13 +22,13 @@ |
||
| 22 | 22 | 'parent_category_key' => 'parent', |
| 23 | 23 | 'localizedAttributes' => 'labels', |
| 24 | 24 | 'locales' => 'labels', |
| 25 | - 'is_root' => function (array $item) { |
|
| 25 | + 'is_root' => function(array $item) { |
|
| 26 | 26 | return empty($item['parent']); |
| 27 | 27 | }, |
| 28 | - 'is_main' => function (array $item) { |
|
| 28 | + 'is_main' => function(array $item) { |
|
| 29 | 29 | return true; |
| 30 | 30 | }, |
| 31 | - 'fk_category_template' => function (array $item) { |
|
| 31 | + 'fk_category_template' => function(array $item) { |
|
| 32 | 32 | return null; |
| 33 | 33 | }, |
| 34 | 34 | ]; |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | public function getMap(): array |
| 19 | 19 | { |
| 20 | 20 | return [ |
| 21 | - 'options' => function (array $value) { |
|
| 21 | + 'options' => function(array $value) { |
|
| 22 | 22 | return [ |
| 23 | 23 | 'code' => $value['code'], |
| 24 | 24 | 'type' => $value['type'], |
@@ -22,13 +22,13 @@ |
||
| 22 | 22 | 'parent_category_key' => 'parent', |
| 23 | 23 | 'localizedAttributes' => 'labels', |
| 24 | 24 | 'locales' => 'labels', |
| 25 | - 'is_root' => function (array $item) { |
|
| 25 | + 'is_root' => function(array $item) { |
|
| 26 | 26 | return false; |
| 27 | 27 | }, |
| 28 | - 'is_main' => function (array $item) { |
|
| 28 | + 'is_main' => function(array $item) { |
|
| 29 | 29 | return true; |
| 30 | 30 | }, |
| 31 | - 'fk_category_template' => function (array $item) { |
|
| 31 | + 'fk_category_template' => function(array $item) { |
|
| 32 | 32 | return null; |
| 33 | 33 | }, |
| 34 | 34 | ]; |
@@ -32,29 +32,29 @@ discard block |
||
| 32 | 32 | public function getMap(): array |
| 33 | 33 | { |
| 34 | 34 | return [ |
| 35 | - 'taxSetName' => function ($item) { |
|
| 35 | + 'taxSetName' => function($item) { |
|
| 36 | 36 | return $this->config->getDefaultTaxSet(); |
| 37 | 37 | }, |
| 38 | - 'color_code' => function ($item) { |
|
| 38 | + 'color_code' => function($item) { |
|
| 39 | 39 | return ''; |
| 40 | 40 | }, |
| 41 | - 'new_from' => function ($item) { |
|
| 41 | + 'new_from' => function($item) { |
|
| 42 | 42 | return null; |
| 43 | 43 | }, |
| 44 | - 'new_to' => function ($item) { |
|
| 44 | + 'new_to' => function($item) { |
|
| 45 | 45 | return null; |
| 46 | 46 | }, |
| 47 | 47 | 'category_key' => 'categories', |
| 48 | - 'category_product_order' => function ($item) { |
|
| 48 | + 'category_product_order' => function($item) { |
|
| 49 | 49 | return 0; |
| 50 | 50 | }, |
| 51 | - 'stores' => function ($item) { |
|
| 51 | + 'stores' => function($item) { |
|
| 52 | 52 | return $this->config->getDefaultStoresForProducts(); |
| 53 | 53 | }, |
| 54 | 54 | 'concrete_sku' => 'identifier', |
| 55 | 55 | 'abstract_sku' => 'parent.abstract_sku', |
| 56 | 56 | 'abstract_product_creation' => 'parent.abstract_product_creation', |
| 57 | - 'prices' => function ($item) { |
|
| 57 | + 'prices' => function($item) { |
|
| 58 | 58 | $result = []; |
| 59 | 59 | foreach ($item['values']['price'] as $value) { |
| 60 | 60 | $result[] = [ |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | 'relations.others' => 'associations.PACK.product_models', |
| 82 | 82 | 'relations.x_sell' => 'associations.X_SELL.product_models', |
| 83 | 83 | 'relations.addon' => 'associations.SUBSTITUTION.product_models', |
| 84 | - 'is_searchable' => function () { |
|
| 84 | + 'is_searchable' => function() { |
|
| 85 | 85 | return true; |
| 86 | 86 | }, |
| 87 | 87 | ]; |
@@ -37,13 +37,13 @@ |
||
| 37 | 37 | return [ |
| 38 | 38 | 'attribute_key' => 'code', |
| 39 | 39 | 'key' => 'code', |
| 40 | - 'allow_input' => function () { |
|
| 40 | + 'allow_input' => function() { |
|
| 41 | 41 | return false; |
| 42 | 42 | }, |
| 43 | - 'is_multiple' => function () { |
|
| 43 | + 'is_multiple' => function() { |
|
| 44 | 44 | return false; |
| 45 | 45 | }, |
| 46 | - 'input_type' => function ($value) { |
|
| 46 | + 'input_type' => function($value) { |
|
| 47 | 47 | return static::ATTRIBUTE_MAP[$value['type']]; |
| 48 | 48 | }, |
| 49 | 49 | 'type' => 'type', |
@@ -18,10 +18,10 @@ |
||
| 18 | 18 | public function getSkuList(): array |
| 19 | 19 | { |
| 20 | 20 | $data = $this->getProvidedDependency(AkeneoPimMiddlewareConnectorDependencyProvider::PRODUCT_ABSTRACT_QUERY) |
| 21 | - ->select('sku') |
|
| 22 | - ->distinct() |
|
| 23 | - ->find() |
|
| 24 | - ->toArray(); |
|
| 21 | + ->select('sku') |
|
| 22 | + ->distinct() |
|
| 23 | + ->find() |
|
| 24 | + ->toArray(); |
|
| 25 | 25 | |
| 26 | 26 | return $data; |
| 27 | 27 | } |
@@ -120,10 +120,10 @@ discard block |
||
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | static::$attributeOptionMap = array_map( |
| 123 | - function ($element) { |
|
| 123 | + function($element) { |
|
| 124 | 124 | return $element[static::KEY_OPTIONS]; |
| 125 | 125 | }, |
| 126 | - array_filter($this->getMap(), function ($element) { |
|
| 126 | + array_filter($this->getMap(), function($element) { |
|
| 127 | 127 | return |
| 128 | 128 | count($element[static::KEY_OPTIONS] ?? []) > 0 && |
| 129 | 129 | in_array($element[static::KEY_TYPE], static::ATTRIBUTE_TYPES_WITH_OPTIONS); |
@@ -131,19 +131,19 @@ discard block |
||
| 131 | 131 | ); |
| 132 | 132 | |
| 133 | 133 | static::$attributeLocalizableMap = array_map( |
| 134 | - function ($element) { |
|
| 134 | + function($element) { |
|
| 135 | 135 | return $element[static::KEY_LOCALIZABLE]; |
| 136 | 136 | }, |
| 137 | - array_filter($this->getMap(), function ($element) { |
|
| 137 | + array_filter($this->getMap(), function($element) { |
|
| 138 | 138 | return in_array($element[static::KEY_TYPE], static::ATTRIBUTE_TYPES_WITH_OPTIONS); |
| 139 | 139 | }) |
| 140 | 140 | ); |
| 141 | 141 | |
| 142 | 142 | static::$attributesForSkippingMap = array_map( |
| 143 | - function ($element) { |
|
| 143 | + function($element) { |
|
| 144 | 144 | return $element[static::KEY_KEY]; |
| 145 | 145 | }, |
| 146 | - array_filter($this->getMap(), function ($element) { |
|
| 146 | + array_filter($this->getMap(), function($element) { |
|
| 147 | 147 | return in_array($element[static::KEY_TYPE], static::ATTRIBUTES_TYPES_FOR_SKIPPING) && $element[static::KEY_KEY] != static::ATTRIBUTE_PRICE; |
| 148 | 148 | }) |
| 149 | 149 | ); |
@@ -206,8 +206,7 @@ discard block |
||
| 206 | 206 | |
| 207 | 207 | foreach ($optionKeys as $optionKey) { |
| 208 | 208 | $options[] = array_key_exists($optionKey, static::$attributeOptionMap[$attributeKey]) ? |
| 209 | - static::$attributeOptionMap[$attributeKey][$optionKey] : |
|
| 210 | - $optionKey; |
|
| 209 | + static::$attributeOptionMap[$attributeKey][$optionKey] : $optionKey; |
|
| 211 | 210 | } |
| 212 | 211 | |
| 213 | 212 | return $options; |
@@ -228,8 +227,7 @@ discard block |
||
| 228 | 227 | |
| 229 | 228 | // Concatenate with comma for multiselect values |
| 230 | 229 | $value[$locale][static::KEY_DATA] = isset($value[$locale][static::KEY_DATA]) ? |
| 231 | - $value[$locale][static::KEY_DATA] . ', ' . $optionValue : |
|
| 232 | - $optionValue; |
|
| 230 | + $value[$locale][static::KEY_DATA].', '.$optionValue : $optionValue; |
|
| 233 | 231 | } |
| 234 | 232 | } |
| 235 | 233 | |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | */ |
| 242 | 242 | protected function addAkeneoPimProcesses(Container $container): Container |
| 243 | 243 | { |
| 244 | - $container[static::AKENEO_PIM_MIDDLEWARE_PROCESSES] = function () { |
|
| 244 | + $container[static::AKENEO_PIM_MIDDLEWARE_PROCESSES] = function() { |
|
| 245 | 245 | return $this->getAkeneoPimProceseesPlugins(); |
| 246 | 246 | }; |
| 247 | 247 | |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | */ |
| 256 | 256 | protected function addServiceAkeneoPim(Container $container): Container |
| 257 | 257 | { |
| 258 | - $container[static::SERVICE_AKENEO_PIM] = function (Container $container) { |
|
| 258 | + $container[static::SERVICE_AKENEO_PIM] = function(Container $container) { |
|
| 259 | 259 | return new AkeneoPimMiddlewareConnectorToAkeneoPimServiceBridge($container->getLocator()->akeneoPim()->service()); |
| 260 | 260 | }; |
| 261 | 261 | |
@@ -269,7 +269,7 @@ discard block |
||
| 269 | 269 | */ |
| 270 | 270 | protected function addFacadeProcess(Container $container): Container |
| 271 | 271 | { |
| 272 | - $container[static::FACADE_PROCESS] = function (Container $container) { |
|
| 272 | + $container[static::FACADE_PROCESS] = function(Container $container) { |
|
| 273 | 273 | return new AkeneoPimMiddlewareConnectorToProcessFacadeBridge($container->getLocator()->process()->facade()); |
| 274 | 274 | }; |
| 275 | 275 | |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | */ |
| 284 | 284 | protected function addServiceUtilText(Container $container): Container |
| 285 | 285 | { |
| 286 | - $container[static::SERVICE_UTIL_TEXT] = function (Container $container) { |
|
| 286 | + $container[static::SERVICE_UTIL_TEXT] = function(Container $container) { |
|
| 287 | 287 | return new AkeneoPimMiddlewareConnectorToUtilTextBridge($container->getLocator()->utilText()->service()); |
| 288 | 288 | }; |
| 289 | 289 | |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | */ |
| 317 | 317 | protected function addDefaultAkeneoPimProcesses(Container $container): Container |
| 318 | 318 | { |
| 319 | - $container[static::DEFAULT_AKENEO_PIM_MIDDLEWARE_PROCESSES] = function () { |
|
| 319 | + $container[static::DEFAULT_AKENEO_PIM_MIDDLEWARE_PROCESSES] = function() { |
|
| 320 | 320 | return $this->getDefaultAkeneoPimProcessesPlugins(); |
| 321 | 321 | }; |
| 322 | 322 | |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | */ |
| 343 | 343 | protected function addDefaultLoggerConfigPlugin($container): Container |
| 344 | 344 | { |
| 345 | - $container[static::AKENEO_PIM_MIDDLEWARE_LOGGER_CONFIG] = function () { |
|
| 345 | + $container[static::AKENEO_PIM_MIDDLEWARE_LOGGER_CONFIG] = function() { |
|
| 346 | 346 | return $this->getDefaultLoggerConfigPlugin(); |
| 347 | 347 | }; |
| 348 | 348 | |
@@ -364,18 +364,18 @@ discard block |
||
| 364 | 364 | */ |
| 365 | 365 | protected function addAttributeImportProcessPlugins(Container $container): Container |
| 366 | 366 | { |
| 367 | - $container[static::ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
| 367 | + $container[static::ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
| 368 | 368 | return new AttributeAkeneoApiStreamPlugin(); |
| 369 | 369 | }; |
| 370 | - $container[static::ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
| 370 | + $container[static::ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
| 371 | 371 | return new AttributeWriteStreamPlugin(); |
| 372 | 372 | }; |
| 373 | 373 | |
| 374 | - $container[static::ATTRIBUTE_IMPORT_ITERATOR_PLUGIN] = function () { |
|
| 374 | + $container[static::ATTRIBUTE_IMPORT_ITERATOR_PLUGIN] = function() { |
|
| 375 | 375 | return new NullIteratorPlugin(); |
| 376 | 376 | }; |
| 377 | 377 | |
| 378 | - $container[static::ATTRIBUTE_IMPORT_STAGE_PLUGINS] = function () { |
|
| 378 | + $container[static::ATTRIBUTE_IMPORT_STAGE_PLUGINS] = function() { |
|
| 379 | 379 | return [ |
| 380 | 380 | new StreamReaderStagePlugin(), |
| 381 | 381 | new AttributeMapPreparationMapperStagePlugin(), |
@@ -385,11 +385,11 @@ discard block |
||
| 385 | 385 | ]; |
| 386 | 386 | }; |
| 387 | 387 | |
| 388 | - $container[static::ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
| 388 | + $container[static::ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
| 389 | 389 | return []; |
| 390 | 390 | }; |
| 391 | 391 | |
| 392 | - $container[static::ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
| 392 | + $container[static::ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
| 393 | 393 | return []; |
| 394 | 394 | }; |
| 395 | 395 | |
@@ -403,18 +403,18 @@ discard block |
||
| 403 | 403 | */ |
| 404 | 404 | protected function addAttributeMapProcessPlugins(Container $container): Container |
| 405 | 405 | { |
| 406 | - $container[static::ATTRIBUTE_MAP_INPUT_STREAM_PLUGIN] = function () { |
|
| 406 | + $container[static::ATTRIBUTE_MAP_INPUT_STREAM_PLUGIN] = function() { |
|
| 407 | 407 | return new AttributeAkeneoApiStreamPlugin(); |
| 408 | 408 | }; |
| 409 | - $container[static::ATTRIBUTE_MAP_OUTPUT_STREAM_PLUGIN] = function () { |
|
| 409 | + $container[static::ATTRIBUTE_MAP_OUTPUT_STREAM_PLUGIN] = function() { |
|
| 410 | 410 | return new JsonOutputStreamPlugin(); |
| 411 | 411 | }; |
| 412 | 412 | |
| 413 | - $container[static::ATTRIBUTE_MAP_ITERATOR_PLUGIN] = function () { |
|
| 413 | + $container[static::ATTRIBUTE_MAP_ITERATOR_PLUGIN] = function() { |
|
| 414 | 414 | return new NullIteratorPlugin(); |
| 415 | 415 | }; |
| 416 | 416 | |
| 417 | - $container[static::ATTRIBUTE_MAP_STAGE_PLUGINS] = function () { |
|
| 417 | + $container[static::ATTRIBUTE_MAP_STAGE_PLUGINS] = function() { |
|
| 418 | 418 | return [ |
| 419 | 419 | new StreamReaderStagePlugin(), |
| 420 | 420 | new AttributeMapPreparationMapperStagePlugin(), |
@@ -424,11 +424,11 @@ discard block |
||
| 424 | 424 | ]; |
| 425 | 425 | }; |
| 426 | 426 | |
| 427 | - $container[static::ATTRIBUTE_MAP_PRE_PROCESSOR_PLUGINS] = function () { |
|
| 427 | + $container[static::ATTRIBUTE_MAP_PRE_PROCESSOR_PLUGINS] = function() { |
|
| 428 | 428 | return []; |
| 429 | 429 | }; |
| 430 | 430 | |
| 431 | - $container[static::ATTRIBUTE_MAP_POST_PROCESSOR_PLUGINS] = function () { |
|
| 431 | + $container[static::ATTRIBUTE_MAP_POST_PROCESSOR_PLUGINS] = function() { |
|
| 432 | 432 | return []; |
| 433 | 433 | }; |
| 434 | 434 | |
@@ -442,18 +442,18 @@ discard block |
||
| 442 | 442 | */ |
| 443 | 443 | protected function addCategoryImportProcessPlugins(Container $container): Container |
| 444 | 444 | { |
| 445 | - $container[static::CATEGORY_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
| 445 | + $container[static::CATEGORY_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
| 446 | 446 | return new CategoryAkeneoApiStreamPlugin(); |
| 447 | 447 | }; |
| 448 | - $container[static::CATEGORY_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
| 448 | + $container[static::CATEGORY_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
| 449 | 449 | return new CategoryWriteStreamPlugin(); |
| 450 | 450 | }; |
| 451 | 451 | |
| 452 | - $container[static::CATEGORY_IMPORT_ITERATOR_PLUGIN] = function () { |
|
| 452 | + $container[static::CATEGORY_IMPORT_ITERATOR_PLUGIN] = function() { |
|
| 453 | 453 | return new NullIteratorPlugin(); |
| 454 | 454 | }; |
| 455 | 455 | |
| 456 | - $container[static::CATEGORY_IMPORT_STAGE_PLUGINS] = function () { |
|
| 456 | + $container[static::CATEGORY_IMPORT_STAGE_PLUGINS] = function() { |
|
| 457 | 457 | return [ |
| 458 | 458 | new StreamReaderStagePlugin(), |
| 459 | 459 | new CategoryMapperStagePlugin(), |
@@ -462,11 +462,11 @@ discard block |
||
| 462 | 462 | ]; |
| 463 | 463 | }; |
| 464 | 464 | |
| 465 | - $container[static::CATEGORY_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
| 465 | + $container[static::CATEGORY_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
| 466 | 466 | return []; |
| 467 | 467 | }; |
| 468 | 468 | |
| 469 | - $container[static::CATEGORY_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
| 469 | + $container[static::CATEGORY_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
| 470 | 470 | return []; |
| 471 | 471 | }; |
| 472 | 472 | |
@@ -480,18 +480,18 @@ discard block |
||
| 480 | 480 | */ |
| 481 | 481 | protected function addLocaleMapImportProcessPlugins(Container $container): Container |
| 482 | 482 | { |
| 483 | - $container[static::LOCALE_MAP_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
| 483 | + $container[static::LOCALE_MAP_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
| 484 | 484 | return new LocaleStreamPlugin(); |
| 485 | 485 | }; |
| 486 | - $container[static::LOCALE_MAP_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
| 486 | + $container[static::LOCALE_MAP_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
| 487 | 487 | return new JsonObjectWriteStreamPlugin(); |
| 488 | 488 | }; |
| 489 | 489 | |
| 490 | - $container[static::LOCALE_MAP_IMPORT_ITERATOR_PLUGIN] = function () { |
|
| 490 | + $container[static::LOCALE_MAP_IMPORT_ITERATOR_PLUGIN] = function() { |
|
| 491 | 491 | return new NullIteratorPlugin(); |
| 492 | 492 | }; |
| 493 | 493 | |
| 494 | - $container[static::LOCALE_MAP_IMPORT_STAGE_PLUGINS] = function () { |
|
| 494 | + $container[static::LOCALE_MAP_IMPORT_STAGE_PLUGINS] = function() { |
|
| 495 | 495 | return [ |
| 496 | 496 | new StreamReaderStagePlugin(), |
| 497 | 497 | new LocaleMapperStagePlugin(), |
@@ -499,11 +499,11 @@ discard block |
||
| 499 | 499 | ]; |
| 500 | 500 | }; |
| 501 | 501 | |
| 502 | - $container[static::LOCALE_MAP_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
| 502 | + $container[static::LOCALE_MAP_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
| 503 | 503 | return []; |
| 504 | 504 | }; |
| 505 | 505 | |
| 506 | - $container[static::LOCALE_MAP_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
| 506 | + $container[static::LOCALE_MAP_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
| 507 | 507 | return []; |
| 508 | 508 | }; |
| 509 | 509 | |
@@ -517,18 +517,18 @@ discard block |
||
| 517 | 517 | */ |
| 518 | 518 | protected function addProductImportProcessPlugins(Container $container): Container |
| 519 | 519 | { |
| 520 | - $container[static::PRODUCT_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
| 520 | + $container[static::PRODUCT_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
| 521 | 521 | return new JsonInputStreamPlugin(); |
| 522 | 522 | }; |
| 523 | - $container[static::PRODUCT_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
| 523 | + $container[static::PRODUCT_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
| 524 | 524 | return new ProductConcreteWriteStreamPlugin(); |
| 525 | 525 | }; |
| 526 | 526 | |
| 527 | - $container[static::PRODUCT_IMPORT_ITERATOR_PLUGIN] = function () { |
|
| 527 | + $container[static::PRODUCT_IMPORT_ITERATOR_PLUGIN] = function() { |
|
| 528 | 528 | return new NullIteratorPlugin(); |
| 529 | 529 | }; |
| 530 | 530 | |
| 531 | - $container[static::PRODUCT_IMPORT_STAGE_PLUGINS] = function () { |
|
| 531 | + $container[static::PRODUCT_IMPORT_STAGE_PLUGINS] = function() { |
|
| 532 | 532 | return [ |
| 533 | 533 | new StreamReaderStagePlugin(), |
| 534 | 534 | new DefaultProductImportValidatorStagePlugin(), |
@@ -538,13 +538,13 @@ discard block |
||
| 538 | 538 | ]; |
| 539 | 539 | }; |
| 540 | 540 | |
| 541 | - $container[static::PRODUCT_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
| 541 | + $container[static::PRODUCT_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
| 542 | 542 | return [ |
| 543 | 543 | new PrepareSkuValidationListPreHookPlugin(), |
| 544 | 544 | ]; |
| 545 | 545 | }; |
| 546 | 546 | |
| 547 | - $container[static::PRODUCT_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
| 547 | + $container[static::PRODUCT_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
| 548 | 548 | return []; |
| 549 | 549 | }; |
| 550 | 550 | |
@@ -558,18 +558,18 @@ discard block |
||
| 558 | 558 | */ |
| 559 | 559 | protected function addProductModelImportProcessPlugins(Container $container): Container |
| 560 | 560 | { |
| 561 | - $container[static::PRODUCT_MODEL_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
| 561 | + $container[static::PRODUCT_MODEL_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
| 562 | 562 | return new JsonInputStreamPlugin(); |
| 563 | 563 | }; |
| 564 | - $container[static::PRODUCT_MODEL_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
| 564 | + $container[static::PRODUCT_MODEL_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
| 565 | 565 | return new ProductAbstractWriteStreamPlugin(); |
| 566 | 566 | }; |
| 567 | 567 | |
| 568 | - $container[static::PRODUCT_MODEL_IMPORT_ITERATOR_PLUGIN] = function () { |
|
| 568 | + $container[static::PRODUCT_MODEL_IMPORT_ITERATOR_PLUGIN] = function() { |
|
| 569 | 569 | return new NullIteratorPlugin(); |
| 570 | 570 | }; |
| 571 | 571 | |
| 572 | - $container[static::PRODUCT_MODEL_IMPORT_STAGE_PLUGINS] = function () { |
|
| 572 | + $container[static::PRODUCT_MODEL_IMPORT_STAGE_PLUGINS] = function() { |
|
| 573 | 573 | return [ |
| 574 | 574 | new StreamReaderStagePlugin(), |
| 575 | 575 | new DefaultProductModelImportValidatorStagePlugin(), |
@@ -579,11 +579,11 @@ discard block |
||
| 579 | 579 | ]; |
| 580 | 580 | }; |
| 581 | 581 | |
| 582 | - $container[static::PRODUCT_MODEL_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
| 582 | + $container[static::PRODUCT_MODEL_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
| 583 | 583 | return []; |
| 584 | 584 | }; |
| 585 | 585 | |
| 586 | - $container[static::PRODUCT_MODEL_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
| 586 | + $container[static::PRODUCT_MODEL_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
| 587 | 587 | return []; |
| 588 | 588 | }; |
| 589 | 589 | |
@@ -597,29 +597,29 @@ discard block |
||
| 597 | 597 | */ |
| 598 | 598 | protected function addProductPreparationProcessPlugins(Container $container): Container |
| 599 | 599 | { |
| 600 | - $container[static::PRODUCT_PREPARATION_INPUT_STREAM_PLUGIN] = function () { |
|
| 600 | + $container[static::PRODUCT_PREPARATION_INPUT_STREAM_PLUGIN] = function() { |
|
| 601 | 601 | return new ProductAkeneoApiStreamPlugin(); |
| 602 | 602 | }; |
| 603 | - $container[static::PRODUCT_PREPARATION_OUTPUT_STREAM_PLUGIN] = function () { |
|
| 603 | + $container[static::PRODUCT_PREPARATION_OUTPUT_STREAM_PLUGIN] = function() { |
|
| 604 | 604 | return new JsonRowOutputStreamPlugin(); |
| 605 | 605 | }; |
| 606 | 606 | |
| 607 | - $container[static::PRODUCT_PREPARATION_ITERATOR_PLUGIN] = function () { |
|
| 607 | + $container[static::PRODUCT_PREPARATION_ITERATOR_PLUGIN] = function() { |
|
| 608 | 608 | return new NullIteratorPlugin(); |
| 609 | 609 | }; |
| 610 | 610 | |
| 611 | - $container[static::PRODUCT_PREPARATION_STAGE_PLUGINS] = function () { |
|
| 611 | + $container[static::PRODUCT_PREPARATION_STAGE_PLUGINS] = function() { |
|
| 612 | 612 | return [ |
| 613 | 613 | new StreamReaderStagePlugin(), |
| 614 | 614 | new StreamWriterStagePlugin(), |
| 615 | 615 | ]; |
| 616 | 616 | }; |
| 617 | 617 | |
| 618 | - $container[static::PRODUCT_PREPARATION_PRE_PROCESSOR_PLUGINS] = function () { |
|
| 618 | + $container[static::PRODUCT_PREPARATION_PRE_PROCESSOR_PLUGINS] = function() { |
|
| 619 | 619 | return []; |
| 620 | 620 | }; |
| 621 | 621 | |
| 622 | - $container[static::PRODUCT_PREPARATION_POST_PROCESSOR_PLUGINS] = function () { |
|
| 622 | + $container[static::PRODUCT_PREPARATION_POST_PROCESSOR_PLUGINS] = function() { |
|
| 623 | 623 | return []; |
| 624 | 624 | }; |
| 625 | 625 | |
@@ -633,29 +633,29 @@ discard block |
||
| 633 | 633 | */ |
| 634 | 634 | protected function addProductModelPreparationProcessPlugins(Container $container): Container |
| 635 | 635 | { |
| 636 | - $container[static::PRODUCT_MODEL_PREPARATION_INPUT_STREAM_PLUGIN] = function () { |
|
| 636 | + $container[static::PRODUCT_MODEL_PREPARATION_INPUT_STREAM_PLUGIN] = function() { |
|
| 637 | 637 | return new ProductModelAkeneoApiStreamPlugin(); |
| 638 | 638 | }; |
| 639 | - $container[static::PRODUCT_MODEL_PREPARATION_OUTPUT_STREAM_PLUGIN] = function () { |
|
| 639 | + $container[static::PRODUCT_MODEL_PREPARATION_OUTPUT_STREAM_PLUGIN] = function() { |
|
| 640 | 640 | return new JsonOutputStreamPlugin(); |
| 641 | 641 | }; |
| 642 | 642 | |
| 643 | - $container[static::PRODUCT_MODEL_PREPARATION_ITERATOR_PLUGIN] = function () { |
|
| 643 | + $container[static::PRODUCT_MODEL_PREPARATION_ITERATOR_PLUGIN] = function() { |
|
| 644 | 644 | return new NullIteratorPlugin(); |
| 645 | 645 | }; |
| 646 | 646 | |
| 647 | - $container[static::PRODUCT_MODEL_PREPARATION_STAGE_PLUGINS] = function () { |
|
| 647 | + $container[static::PRODUCT_MODEL_PREPARATION_STAGE_PLUGINS] = function() { |
|
| 648 | 648 | return [ |
| 649 | 649 | new StreamReaderStagePlugin(), |
| 650 | 650 | new StreamWriterStagePlugin(), |
| 651 | 651 | ]; |
| 652 | 652 | }; |
| 653 | 653 | |
| 654 | - $container[static::PRODUCT_MODEL_PREPARATION_PRE_PROCESSOR_PLUGINS] = function () { |
|
| 654 | + $container[static::PRODUCT_MODEL_PREPARATION_PRE_PROCESSOR_PLUGINS] = function() { |
|
| 655 | 655 | return []; |
| 656 | 656 | }; |
| 657 | 657 | |
| 658 | - $container[static::PRODUCT_MODEL_PREPARATION_POST_PROCESSOR_PLUGINS] = function () { |
|
| 658 | + $container[static::PRODUCT_MODEL_PREPARATION_POST_PROCESSOR_PLUGINS] = function() { |
|
| 659 | 659 | return []; |
| 660 | 660 | }; |
| 661 | 661 | |
@@ -669,18 +669,18 @@ discard block |
||
| 669 | 669 | */ |
| 670 | 670 | protected function addTaxSetMapImportProcessPlugins(Container $container): Container |
| 671 | 671 | { |
| 672 | - $container[static::TAX_SET_MAP_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
| 672 | + $container[static::TAX_SET_MAP_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
| 673 | 673 | return new TaxSetStreamPlugin(); |
| 674 | 674 | }; |
| 675 | - $container[static::TAX_SET_MAP_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
| 675 | + $container[static::TAX_SET_MAP_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
| 676 | 676 | return new JsonObjectWriteStreamPlugin(); |
| 677 | 677 | }; |
| 678 | 678 | |
| 679 | - $container[static::TAX_SET_MAP_IMPORT_ITERATOR_PLUGIN] = function () { |
|
| 679 | + $container[static::TAX_SET_MAP_IMPORT_ITERATOR_PLUGIN] = function() { |
|
| 680 | 680 | return new NullIteratorPlugin(); |
| 681 | 681 | }; |
| 682 | 682 | |
| 683 | - $container[static::TAX_SET_MAP_IMPORT_STAGE_PLUGINS] = function () { |
|
| 683 | + $container[static::TAX_SET_MAP_IMPORT_STAGE_PLUGINS] = function() { |
|
| 684 | 684 | return [ |
| 685 | 685 | new StreamReaderStagePlugin(), |
| 686 | 686 | new TaxSetMapperStagePlugin(), |
@@ -688,11 +688,11 @@ discard block |
||
| 688 | 688 | ]; |
| 689 | 689 | }; |
| 690 | 690 | |
| 691 | - $container[static::TAX_SET_MAP_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
| 691 | + $container[static::TAX_SET_MAP_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
| 692 | 692 | return []; |
| 693 | 693 | }; |
| 694 | 694 | |
| 695 | - $container[static::TAX_SET_MAP_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
| 695 | + $container[static::TAX_SET_MAP_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
| 696 | 696 | return []; |
| 697 | 697 | }; |
| 698 | 698 | |
@@ -706,30 +706,30 @@ discard block |
||
| 706 | 706 | */ |
| 707 | 707 | protected function addSuperAttributeImportProcessPlugins(Container $container): Container |
| 708 | 708 | { |
| 709 | - $container[static::SUPER_ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
| 709 | + $container[static::SUPER_ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
| 710 | 710 | return new SuperAttributesAkeneoApiStreamPlugin(); |
| 711 | 711 | }; |
| 712 | 712 | |
| 713 | - $container[static::SUPER_ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
| 713 | + $container[static::SUPER_ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
| 714 | 714 | return new JsonSuperAttributeWriteStreamPlugin(); |
| 715 | 715 | }; |
| 716 | 716 | |
| 717 | - $container[static::SUPER_ATTRIBUTE_IMPORT_ITERATOR_PLUGIN] = function () { |
|
| 717 | + $container[static::SUPER_ATTRIBUTE_IMPORT_ITERATOR_PLUGIN] = function() { |
|
| 718 | 718 | return new NullIteratorPlugin(); |
| 719 | 719 | }; |
| 720 | 720 | |
| 721 | - $container[static::SUPER_ATTRIBUTE_IMPORT_STAGE_PLUGINS] = function () { |
|
| 721 | + $container[static::SUPER_ATTRIBUTE_IMPORT_STAGE_PLUGINS] = function() { |
|
| 722 | 722 | return [ |
| 723 | 723 | new StreamReaderStagePlugin(), |
| 724 | 724 | new StreamWriterStagePlugin(), |
| 725 | 725 | ]; |
| 726 | 726 | }; |
| 727 | 727 | |
| 728 | - $container[static::SUPER_ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
| 728 | + $container[static::SUPER_ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
| 729 | 729 | return []; |
| 730 | 730 | }; |
| 731 | 731 | |
| 732 | - $container[static::SUPER_ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
| 732 | + $container[static::SUPER_ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
| 733 | 733 | return []; |
| 734 | 734 | }; |
| 735 | 735 | |
@@ -743,7 +743,7 @@ discard block |
||
| 743 | 743 | */ |
| 744 | 744 | protected function addAkeneoPimTranslatorFunctions($container): Container |
| 745 | 745 | { |
| 746 | - $container[static::AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS] = function () { |
|
| 746 | + $container[static::AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS] = function() { |
|
| 747 | 747 | return $this->getAkeneoPimTranslatorFunctionPlugins(); |
| 748 | 748 | }; |
| 749 | 749 | |
@@ -786,7 +786,7 @@ discard block |
||
| 786 | 786 | */ |
| 787 | 787 | protected function addDefaultAkeneoPimTranslatorFunctions($container): Container |
| 788 | 788 | { |
| 789 | - $container[static::DEFAULT_AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS] = function () { |
|
| 789 | + $container[static::DEFAULT_AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS] = function() { |
|
| 790 | 790 | return $this->getDefaultAkeneoPimTranslatorFunctionPlugins(); |
| 791 | 791 | }; |
| 792 | 792 | |
@@ -872,7 +872,7 @@ discard block |
||
| 872 | 872 | */ |
| 873 | 873 | protected function addDefaultCategoryImportStagePlugins($container): Container |
| 874 | 874 | { |
| 875 | - $container[static::DEFAULT_CATEGORY_IMPORT_STAGE_PLUGINS] = function () { |
|
| 875 | + $container[static::DEFAULT_CATEGORY_IMPORT_STAGE_PLUGINS] = function() { |
|
| 876 | 876 | return [ |
| 877 | 877 | new StreamReaderStagePlugin(), |
| 878 | 878 | new DefaultCategoryMapperStagePlugin(), |
@@ -891,7 +891,7 @@ discard block |
||
| 891 | 891 | */ |
| 892 | 892 | protected function addDefaultProductImportStagePlugins($container): Container |
| 893 | 893 | { |
| 894 | - $container[static::DEFAULT_PRODUCT_IMPORT_STAGE_PLUGINS] = function () { |
|
| 894 | + $container[static::DEFAULT_PRODUCT_IMPORT_STAGE_PLUGINS] = function() { |
|
| 895 | 895 | return [ |
| 896 | 896 | new StreamReaderStagePlugin(), |
| 897 | 897 | new DefaultProductImportValidatorStagePlugin(), |
@@ -911,7 +911,7 @@ discard block |
||
| 911 | 911 | */ |
| 912 | 912 | protected function addDefaultProductModelImportStagePlugins($container): Container |
| 913 | 913 | { |
| 914 | - $container[static::DEFAULT_PRODUCT_MODEL_IMPORT_STAGE_PLUGINS] = function () { |
|
| 914 | + $container[static::DEFAULT_PRODUCT_MODEL_IMPORT_STAGE_PLUGINS] = function() { |
|
| 915 | 915 | return [ |
| 916 | 916 | new StreamReaderStagePlugin(), |
| 917 | 917 | new DefaultProductModelImportValidatorStagePlugin(), |
@@ -931,7 +931,7 @@ discard block |
||
| 931 | 931 | */ |
| 932 | 932 | protected function addProductAbstractQuery($container): Container |
| 933 | 933 | { |
| 934 | - $container[static::PRODUCT_ABSTRACT_QUERY] = function () { |
|
| 934 | + $container[static::PRODUCT_ABSTRACT_QUERY] = function() { |
|
| 935 | 935 | return SpyProductAbstractQuery::create(); |
| 936 | 936 | }; |
| 937 | 937 | |