@@ -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 |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | */ |
241 | 241 | protected function addAkeneoPimProcesses(Container $container): Container |
242 | 242 | { |
243 | - $container[static::AKENEO_PIM_MIDDLEWARE_PROCESSES] = function () { |
|
243 | + $container[static::AKENEO_PIM_MIDDLEWARE_PROCESSES] = function() { |
|
244 | 244 | return $this->getAkeneoPimProceseesPlugins(); |
245 | 245 | }; |
246 | 246 | |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | */ |
255 | 255 | protected function addServiceAkeneoPim(Container $container): Container |
256 | 256 | { |
257 | - $container[static::SERVICE_AKENEO_PIM] = function (Container $container) { |
|
257 | + $container[static::SERVICE_AKENEO_PIM] = function(Container $container) { |
|
258 | 258 | return new AkeneoPimMiddlewareConnectorToAkeneoPimServiceBridge($container->getLocator()->akeneoPim()->service()); |
259 | 259 | }; |
260 | 260 | |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | */ |
269 | 269 | protected function addFacadeProcess(Container $container): Container |
270 | 270 | { |
271 | - $container[static::FACADE_PROCESS] = function (Container $container) { |
|
271 | + $container[static::FACADE_PROCESS] = function(Container $container) { |
|
272 | 272 | return new AkeneoPimMiddlewareConnectorToProcessFacadeBridge($container->getLocator()->process()->facade()); |
273 | 273 | }; |
274 | 274 | |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | */ |
283 | 283 | protected function addServiceUtilText(Container $container): Container |
284 | 284 | { |
285 | - $container[static::SERVICE_UTIL_TEXT] = function (Container $container) { |
|
285 | + $container[static::SERVICE_UTIL_TEXT] = function(Container $container) { |
|
286 | 286 | return new AkeneoPimMiddlewareConnectorToUtilTextBridge($container->getLocator()->utilText()->service()); |
287 | 287 | }; |
288 | 288 | |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | */ |
316 | 316 | protected function addDefaultAkeneoPimProcesses(Container $container): Container |
317 | 317 | { |
318 | - $container[static::DEFAULT_AKENEO_PIM_MIDDLEWARE_PROCESSES] = function () { |
|
318 | + $container[static::DEFAULT_AKENEO_PIM_MIDDLEWARE_PROCESSES] = function() { |
|
319 | 319 | return $this->getDefaultAkeneoPimProcessesPlugins(); |
320 | 320 | }; |
321 | 321 | |
@@ -341,7 +341,7 @@ discard block |
||
341 | 341 | */ |
342 | 342 | protected function addDefaultLoggerConfigPlugin($container): Container |
343 | 343 | { |
344 | - $container[static::AKENEO_PIM_MIDDLEWARE_LOGGER_CONFIG] = function () { |
|
344 | + $container[static::AKENEO_PIM_MIDDLEWARE_LOGGER_CONFIG] = function() { |
|
345 | 345 | return $this->getDefaultLoggerConfigPlugin(); |
346 | 346 | }; |
347 | 347 | |
@@ -363,18 +363,18 @@ discard block |
||
363 | 363 | */ |
364 | 364 | protected function addAttributeImportProcessPlugins(Container $container): Container |
365 | 365 | { |
366 | - $container[static::ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
366 | + $container[static::ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
367 | 367 | return new AttributeAkeneoApiStreamPlugin(); |
368 | 368 | }; |
369 | - $container[static::ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
369 | + $container[static::ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
370 | 370 | return new AttributeWriteStreamPlugin(); |
371 | 371 | }; |
372 | 372 | |
373 | - $container[static::ATTRIBUTE_IMPORT_ITERATOR_PLUGIN] = function () { |
|
373 | + $container[static::ATTRIBUTE_IMPORT_ITERATOR_PLUGIN] = function() { |
|
374 | 374 | return new NullIteratorPlugin(); |
375 | 375 | }; |
376 | 376 | |
377 | - $container[static::ATTRIBUTE_IMPORT_STAGE_PLUGINS] = function () { |
|
377 | + $container[static::ATTRIBUTE_IMPORT_STAGE_PLUGINS] = function() { |
|
378 | 378 | return [ |
379 | 379 | new StreamReaderStagePlugin(), |
380 | 380 | new AttributeMapPreparationMapperStagePlugin(), |
@@ -384,11 +384,11 @@ discard block |
||
384 | 384 | ]; |
385 | 385 | }; |
386 | 386 | |
387 | - $container[static::ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
387 | + $container[static::ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
388 | 388 | return []; |
389 | 389 | }; |
390 | 390 | |
391 | - $container[static::ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
391 | + $container[static::ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
392 | 392 | return []; |
393 | 393 | }; |
394 | 394 | |
@@ -402,18 +402,18 @@ discard block |
||
402 | 402 | */ |
403 | 403 | protected function addAttributeMapProcessPlugins(Container $container): Container |
404 | 404 | { |
405 | - $container[static::ATTRIBUTE_MAP_INPUT_STREAM_PLUGIN] = function () { |
|
405 | + $container[static::ATTRIBUTE_MAP_INPUT_STREAM_PLUGIN] = function() { |
|
406 | 406 | return new AttributeAkeneoApiStreamPlugin(); |
407 | 407 | }; |
408 | - $container[static::ATTRIBUTE_MAP_OUTPUT_STREAM_PLUGIN] = function () { |
|
408 | + $container[static::ATTRIBUTE_MAP_OUTPUT_STREAM_PLUGIN] = function() { |
|
409 | 409 | return new JsonOutputStreamPlugin(); |
410 | 410 | }; |
411 | 411 | |
412 | - $container[static::ATTRIBUTE_MAP_ITERATOR_PLUGIN] = function () { |
|
412 | + $container[static::ATTRIBUTE_MAP_ITERATOR_PLUGIN] = function() { |
|
413 | 413 | return new NullIteratorPlugin(); |
414 | 414 | }; |
415 | 415 | |
416 | - $container[static::ATTRIBUTE_MAP_STAGE_PLUGINS] = function () { |
|
416 | + $container[static::ATTRIBUTE_MAP_STAGE_PLUGINS] = function() { |
|
417 | 417 | return [ |
418 | 418 | new StreamReaderStagePlugin(), |
419 | 419 | new AttributeMapPreparationMapperStagePlugin(), |
@@ -423,11 +423,11 @@ discard block |
||
423 | 423 | ]; |
424 | 424 | }; |
425 | 425 | |
426 | - $container[static::ATTRIBUTE_MAP_PRE_PROCESSOR_PLUGINS] = function () { |
|
426 | + $container[static::ATTRIBUTE_MAP_PRE_PROCESSOR_PLUGINS] = function() { |
|
427 | 427 | return []; |
428 | 428 | }; |
429 | 429 | |
430 | - $container[static::ATTRIBUTE_MAP_POST_PROCESSOR_PLUGINS] = function () { |
|
430 | + $container[static::ATTRIBUTE_MAP_POST_PROCESSOR_PLUGINS] = function() { |
|
431 | 431 | return []; |
432 | 432 | }; |
433 | 433 | |
@@ -441,18 +441,18 @@ discard block |
||
441 | 441 | */ |
442 | 442 | protected function addCategoryImportProcessPlugins(Container $container): Container |
443 | 443 | { |
444 | - $container[static::CATEGORY_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
444 | + $container[static::CATEGORY_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
445 | 445 | return new CategoryAkeneoApiStreamPlugin(); |
446 | 446 | }; |
447 | - $container[static::CATEGORY_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
447 | + $container[static::CATEGORY_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
448 | 448 | return new CategoryWriteStreamPlugin(); |
449 | 449 | }; |
450 | 450 | |
451 | - $container[static::CATEGORY_IMPORT_ITERATOR_PLUGIN] = function () { |
|
451 | + $container[static::CATEGORY_IMPORT_ITERATOR_PLUGIN] = function() { |
|
452 | 452 | return new NullIteratorPlugin(); |
453 | 453 | }; |
454 | 454 | |
455 | - $container[static::CATEGORY_IMPORT_STAGE_PLUGINS] = function () { |
|
455 | + $container[static::CATEGORY_IMPORT_STAGE_PLUGINS] = function() { |
|
456 | 456 | return [ |
457 | 457 | new StreamReaderStagePlugin(), |
458 | 458 | new CategoryMapperStagePlugin(), |
@@ -461,11 +461,11 @@ discard block |
||
461 | 461 | ]; |
462 | 462 | }; |
463 | 463 | |
464 | - $container[static::CATEGORY_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
464 | + $container[static::CATEGORY_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
465 | 465 | return []; |
466 | 466 | }; |
467 | 467 | |
468 | - $container[static::CATEGORY_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
468 | + $container[static::CATEGORY_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
469 | 469 | return []; |
470 | 470 | }; |
471 | 471 | |
@@ -479,18 +479,18 @@ discard block |
||
479 | 479 | */ |
480 | 480 | protected function addLocaleMapImportProcessPlugins(Container $container): Container |
481 | 481 | { |
482 | - $container[static::LOCALE_MAP_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
482 | + $container[static::LOCALE_MAP_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
483 | 483 | return new LocaleStreamPlugin(); |
484 | 484 | }; |
485 | - $container[static::LOCALE_MAP_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
485 | + $container[static::LOCALE_MAP_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
486 | 486 | return new JsonObjectWriteStreamPlugin(); |
487 | 487 | }; |
488 | 488 | |
489 | - $container[static::LOCALE_MAP_IMPORT_ITERATOR_PLUGIN] = function () { |
|
489 | + $container[static::LOCALE_MAP_IMPORT_ITERATOR_PLUGIN] = function() { |
|
490 | 490 | return new NullIteratorPlugin(); |
491 | 491 | }; |
492 | 492 | |
493 | - $container[static::LOCALE_MAP_IMPORT_STAGE_PLUGINS] = function () { |
|
493 | + $container[static::LOCALE_MAP_IMPORT_STAGE_PLUGINS] = function() { |
|
494 | 494 | return [ |
495 | 495 | new StreamReaderStagePlugin(), |
496 | 496 | new LocaleMapperStagePlugin(), |
@@ -498,11 +498,11 @@ discard block |
||
498 | 498 | ]; |
499 | 499 | }; |
500 | 500 | |
501 | - $container[static::LOCALE_MAP_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
501 | + $container[static::LOCALE_MAP_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
502 | 502 | return []; |
503 | 503 | }; |
504 | 504 | |
505 | - $container[static::LOCALE_MAP_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
505 | + $container[static::LOCALE_MAP_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
506 | 506 | return []; |
507 | 507 | }; |
508 | 508 | |
@@ -516,18 +516,18 @@ discard block |
||
516 | 516 | */ |
517 | 517 | protected function addProductImportProcessPlugins(Container $container): Container |
518 | 518 | { |
519 | - $container[static::PRODUCT_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
519 | + $container[static::PRODUCT_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
520 | 520 | return new JsonInputStreamPlugin(); |
521 | 521 | }; |
522 | - $container[static::PRODUCT_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
522 | + $container[static::PRODUCT_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
523 | 523 | return new ProductConcreteWriteStreamPlugin(); |
524 | 524 | }; |
525 | 525 | |
526 | - $container[static::PRODUCT_IMPORT_ITERATOR_PLUGIN] = function () { |
|
526 | + $container[static::PRODUCT_IMPORT_ITERATOR_PLUGIN] = function() { |
|
527 | 527 | return new NullIteratorPlugin(); |
528 | 528 | }; |
529 | 529 | |
530 | - $container[static::PRODUCT_IMPORT_STAGE_PLUGINS] = function () { |
|
530 | + $container[static::PRODUCT_IMPORT_STAGE_PLUGINS] = function() { |
|
531 | 531 | return [ |
532 | 532 | new StreamReaderStagePlugin(), |
533 | 533 | new DefaultProductImportValidatorStagePlugin(), |
@@ -537,13 +537,13 @@ discard block |
||
537 | 537 | ]; |
538 | 538 | }; |
539 | 539 | |
540 | - $container[static::PRODUCT_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
540 | + $container[static::PRODUCT_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
541 | 541 | return [ |
542 | 542 | new PrepareSkuValidationListPreHookPlugin(), |
543 | 543 | ]; |
544 | 544 | }; |
545 | 545 | |
546 | - $container[static::PRODUCT_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
546 | + $container[static::PRODUCT_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
547 | 547 | return []; |
548 | 548 | }; |
549 | 549 | |
@@ -557,18 +557,18 @@ discard block |
||
557 | 557 | */ |
558 | 558 | protected function addProductModelImportProcessPlugins(Container $container): Container |
559 | 559 | { |
560 | - $container[static::PRODUCT_MODEL_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
560 | + $container[static::PRODUCT_MODEL_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
561 | 561 | return new JsonInputStreamPlugin(); |
562 | 562 | }; |
563 | - $container[static::PRODUCT_MODEL_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
563 | + $container[static::PRODUCT_MODEL_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
564 | 564 | return new ProductAbstractWriteStreamPlugin(); |
565 | 565 | }; |
566 | 566 | |
567 | - $container[static::PRODUCT_MODEL_IMPORT_ITERATOR_PLUGIN] = function () { |
|
567 | + $container[static::PRODUCT_MODEL_IMPORT_ITERATOR_PLUGIN] = function() { |
|
568 | 568 | return new NullIteratorPlugin(); |
569 | 569 | }; |
570 | 570 | |
571 | - $container[static::PRODUCT_MODEL_IMPORT_STAGE_PLUGINS] = function () { |
|
571 | + $container[static::PRODUCT_MODEL_IMPORT_STAGE_PLUGINS] = function() { |
|
572 | 572 | return [ |
573 | 573 | new StreamReaderStagePlugin(), |
574 | 574 | new DefaultProductModelImportValidatorStagePlugin(), |
@@ -578,11 +578,11 @@ discard block |
||
578 | 578 | ]; |
579 | 579 | }; |
580 | 580 | |
581 | - $container[static::PRODUCT_MODEL_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
581 | + $container[static::PRODUCT_MODEL_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
582 | 582 | return []; |
583 | 583 | }; |
584 | 584 | |
585 | - $container[static::PRODUCT_MODEL_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
585 | + $container[static::PRODUCT_MODEL_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
586 | 586 | return []; |
587 | 587 | }; |
588 | 588 | |
@@ -596,29 +596,29 @@ discard block |
||
596 | 596 | */ |
597 | 597 | protected function addProductPreparationProcessPlugins(Container $container): Container |
598 | 598 | { |
599 | - $container[static::PRODUCT_PREPARATION_INPUT_STREAM_PLUGIN] = function () { |
|
599 | + $container[static::PRODUCT_PREPARATION_INPUT_STREAM_PLUGIN] = function() { |
|
600 | 600 | return new ProductAkeneoApiStreamPlugin(); |
601 | 601 | }; |
602 | - $container[static::PRODUCT_PREPARATION_OUTPUT_STREAM_PLUGIN] = function () { |
|
602 | + $container[static::PRODUCT_PREPARATION_OUTPUT_STREAM_PLUGIN] = function() { |
|
603 | 603 | return new JsonOutputStreamPlugin(); |
604 | 604 | }; |
605 | 605 | |
606 | - $container[static::PRODUCT_PREPARATION_ITERATOR_PLUGIN] = function () { |
|
606 | + $container[static::PRODUCT_PREPARATION_ITERATOR_PLUGIN] = function() { |
|
607 | 607 | return new NullIteratorPlugin(); |
608 | 608 | }; |
609 | 609 | |
610 | - $container[static::PRODUCT_PREPARATION_STAGE_PLUGINS] = function () { |
|
610 | + $container[static::PRODUCT_PREPARATION_STAGE_PLUGINS] = function() { |
|
611 | 611 | return [ |
612 | 612 | new StreamReaderStagePlugin(), |
613 | 613 | new StreamWriterStagePlugin(), |
614 | 614 | ]; |
615 | 615 | }; |
616 | 616 | |
617 | - $container[static::PRODUCT_PREPARATION_PRE_PROCESSOR_PLUGINS] = function () { |
|
617 | + $container[static::PRODUCT_PREPARATION_PRE_PROCESSOR_PLUGINS] = function() { |
|
618 | 618 | return []; |
619 | 619 | }; |
620 | 620 | |
621 | - $container[static::PRODUCT_PREPARATION_POST_PROCESSOR_PLUGINS] = function () { |
|
621 | + $container[static::PRODUCT_PREPARATION_POST_PROCESSOR_PLUGINS] = function() { |
|
622 | 622 | return []; |
623 | 623 | }; |
624 | 624 | |
@@ -632,29 +632,29 @@ discard block |
||
632 | 632 | */ |
633 | 633 | protected function addProductModelPreparationProcessPlugins(Container $container): Container |
634 | 634 | { |
635 | - $container[static::PRODUCT_MODEL_PREPARATION_INPUT_STREAM_PLUGIN] = function () { |
|
635 | + $container[static::PRODUCT_MODEL_PREPARATION_INPUT_STREAM_PLUGIN] = function() { |
|
636 | 636 | return new ProductModelAkeneoApiStreamPlugin(); |
637 | 637 | }; |
638 | - $container[static::PRODUCT_MODEL_PREPARATION_OUTPUT_STREAM_PLUGIN] = function () { |
|
638 | + $container[static::PRODUCT_MODEL_PREPARATION_OUTPUT_STREAM_PLUGIN] = function() { |
|
639 | 639 | return new JsonOutputStreamPlugin(); |
640 | 640 | }; |
641 | 641 | |
642 | - $container[static::PRODUCT_MODEL_PREPARATION_ITERATOR_PLUGIN] = function () { |
|
642 | + $container[static::PRODUCT_MODEL_PREPARATION_ITERATOR_PLUGIN] = function() { |
|
643 | 643 | return new NullIteratorPlugin(); |
644 | 644 | }; |
645 | 645 | |
646 | - $container[static::PRODUCT_MODEL_PREPARATION_STAGE_PLUGINS] = function () { |
|
646 | + $container[static::PRODUCT_MODEL_PREPARATION_STAGE_PLUGINS] = function() { |
|
647 | 647 | return [ |
648 | 648 | new StreamReaderStagePlugin(), |
649 | 649 | new StreamWriterStagePlugin(), |
650 | 650 | ]; |
651 | 651 | }; |
652 | 652 | |
653 | - $container[static::PRODUCT_MODEL_PREPARATION_PRE_PROCESSOR_PLUGINS] = function () { |
|
653 | + $container[static::PRODUCT_MODEL_PREPARATION_PRE_PROCESSOR_PLUGINS] = function() { |
|
654 | 654 | return []; |
655 | 655 | }; |
656 | 656 | |
657 | - $container[static::PRODUCT_MODEL_PREPARATION_POST_PROCESSOR_PLUGINS] = function () { |
|
657 | + $container[static::PRODUCT_MODEL_PREPARATION_POST_PROCESSOR_PLUGINS] = function() { |
|
658 | 658 | return []; |
659 | 659 | }; |
660 | 660 | |
@@ -668,18 +668,18 @@ discard block |
||
668 | 668 | */ |
669 | 669 | protected function addTaxSetMapImportProcessPlugins(Container $container): Container |
670 | 670 | { |
671 | - $container[static::TAX_SET_MAP_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
671 | + $container[static::TAX_SET_MAP_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
672 | 672 | return new TaxSetStreamPlugin(); |
673 | 673 | }; |
674 | - $container[static::TAX_SET_MAP_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
674 | + $container[static::TAX_SET_MAP_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
675 | 675 | return new JsonObjectWriteStreamPlugin(); |
676 | 676 | }; |
677 | 677 | |
678 | - $container[static::TAX_SET_MAP_IMPORT_ITERATOR_PLUGIN] = function () { |
|
678 | + $container[static::TAX_SET_MAP_IMPORT_ITERATOR_PLUGIN] = function() { |
|
679 | 679 | return new NullIteratorPlugin(); |
680 | 680 | }; |
681 | 681 | |
682 | - $container[static::TAX_SET_MAP_IMPORT_STAGE_PLUGINS] = function () { |
|
682 | + $container[static::TAX_SET_MAP_IMPORT_STAGE_PLUGINS] = function() { |
|
683 | 683 | return [ |
684 | 684 | new StreamReaderStagePlugin(), |
685 | 685 | new TaxSetMapperStagePlugin(), |
@@ -687,11 +687,11 @@ discard block |
||
687 | 687 | ]; |
688 | 688 | }; |
689 | 689 | |
690 | - $container[static::TAX_SET_MAP_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
690 | + $container[static::TAX_SET_MAP_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
691 | 691 | return []; |
692 | 692 | }; |
693 | 693 | |
694 | - $container[static::TAX_SET_MAP_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
694 | + $container[static::TAX_SET_MAP_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
695 | 695 | return []; |
696 | 696 | }; |
697 | 697 | |
@@ -705,30 +705,30 @@ discard block |
||
705 | 705 | */ |
706 | 706 | protected function addSuperAttributeImportProcessPlugins(Container $container): Container |
707 | 707 | { |
708 | - $container[static::SUPER_ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
708 | + $container[static::SUPER_ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
709 | 709 | return new SuperAttributesAkeneoApiStreamPlugin(); |
710 | 710 | }; |
711 | 711 | |
712 | - $container[static::SUPER_ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
712 | + $container[static::SUPER_ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
713 | 713 | return new JsonSuperAttributeWriteStreamPlugin(); |
714 | 714 | }; |
715 | 715 | |
716 | - $container[static::SUPER_ATTRIBUTE_IMPORT_ITERATOR_PLUGIN] = function () { |
|
716 | + $container[static::SUPER_ATTRIBUTE_IMPORT_ITERATOR_PLUGIN] = function() { |
|
717 | 717 | return new NullIteratorPlugin(); |
718 | 718 | }; |
719 | 719 | |
720 | - $container[static::SUPER_ATTRIBUTE_IMPORT_STAGE_PLUGINS] = function () { |
|
720 | + $container[static::SUPER_ATTRIBUTE_IMPORT_STAGE_PLUGINS] = function() { |
|
721 | 721 | return [ |
722 | 722 | new StreamReaderStagePlugin(), |
723 | 723 | new StreamWriterStagePlugin(), |
724 | 724 | ]; |
725 | 725 | }; |
726 | 726 | |
727 | - $container[static::SUPER_ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
727 | + $container[static::SUPER_ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
728 | 728 | return []; |
729 | 729 | }; |
730 | 730 | |
731 | - $container[static::SUPER_ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
731 | + $container[static::SUPER_ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
732 | 732 | return []; |
733 | 733 | }; |
734 | 734 | |
@@ -742,7 +742,7 @@ discard block |
||
742 | 742 | */ |
743 | 743 | protected function addAkeneoPimTranslatorFunctions($container): Container |
744 | 744 | { |
745 | - $container[static::AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS] = function () { |
|
745 | + $container[static::AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS] = function() { |
|
746 | 746 | return $this->getAkeneoPimTranslatorFunctionPlugins(); |
747 | 747 | }; |
748 | 748 | |
@@ -785,7 +785,7 @@ discard block |
||
785 | 785 | */ |
786 | 786 | protected function addDefaultAkeneoPimTranslatorFunctions($container): Container |
787 | 787 | { |
788 | - $container[static::DEFAULT_AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS] = function () { |
|
788 | + $container[static::DEFAULT_AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS] = function() { |
|
789 | 789 | return $this->getDefaultAkeneoPimTranslatorFunctionPlugins(); |
790 | 790 | }; |
791 | 791 | |
@@ -871,7 +871,7 @@ discard block |
||
871 | 871 | */ |
872 | 872 | protected function addDefaultCategoryImportStagePlugins($container): Container |
873 | 873 | { |
874 | - $container[static::DEFAULT_CATEGORY_IMPORT_STAGE_PLUGINS] = function () { |
|
874 | + $container[static::DEFAULT_CATEGORY_IMPORT_STAGE_PLUGINS] = function() { |
|
875 | 875 | return [ |
876 | 876 | new StreamReaderStagePlugin(), |
877 | 877 | new DefaultCategoryMapperStagePlugin(), |
@@ -890,7 +890,7 @@ discard block |
||
890 | 890 | */ |
891 | 891 | protected function addDefaultProductImportStagePlugins($container): Container |
892 | 892 | { |
893 | - $container[static::DEFAULT_PRODUCT_IMPORT_STAGE_PLUGINS] = function () { |
|
893 | + $container[static::DEFAULT_PRODUCT_IMPORT_STAGE_PLUGINS] = function() { |
|
894 | 894 | return [ |
895 | 895 | new StreamReaderStagePlugin(), |
896 | 896 | new DefaultProductImportValidatorStagePlugin(), |
@@ -910,7 +910,7 @@ discard block |
||
910 | 910 | */ |
911 | 911 | protected function addDefaultProductModelImportStagePlugins($container): Container |
912 | 912 | { |
913 | - $container[static::DEFAULT_PRODUCT_MODEL_IMPORT_STAGE_PLUGINS] = function () { |
|
913 | + $container[static::DEFAULT_PRODUCT_MODEL_IMPORT_STAGE_PLUGINS] = function() { |
|
914 | 914 | return [ |
915 | 915 | new StreamReaderStagePlugin(), |
916 | 916 | new DefaultProductModelImportValidatorStagePlugin(), |
@@ -930,7 +930,7 @@ discard block |
||
930 | 930 | */ |
931 | 931 | protected function addProductAbstractQuery($container): Container |
932 | 932 | { |
933 | - $container[static::PRODUCT_ABSTRACT_QUERY] = function () { |
|
933 | + $container[static::PRODUCT_ABSTRACT_QUERY] = function() { |
|
934 | 934 | return SpyProductAbstractQuery::create(); |
935 | 935 | }; |
936 | 936 |