| @@ -126,29 +126,29 @@ discard block | ||
| 126 | 126 | } | 
| 127 | 127 | |
| 128 | 128 | static::$attributeOptionMap = array_map( | 
| 129 | -            function ($element) { | |
| 129 | +            function($element) { | |
| 130 | 130 | return $element[static::KEY_OPTIONS]; | 
| 131 | 131 | }, | 
| 132 | -            array_filter($this->getMap(), function ($element) { | |
| 132 | +            array_filter($this->getMap(), function($element) { | |
| 133 | 133 | return count($element[static::KEY_OPTIONS] ?? []) > 0 && | 
| 134 | 134 | in_array($element[static::KEY_TYPE], static::ATTRIBUTE_TYPES_WITH_OPTIONS); | 
| 135 | 135 | }) | 
| 136 | 136 | ); | 
| 137 | 137 | |
| 138 | 138 | static::$attributeLocalizableMap = array_map( | 
| 139 | -            function ($element) { | |
| 139 | +            function($element) { | |
| 140 | 140 | return $element[static::KEY_LOCALIZABLE]; | 
| 141 | 141 | }, | 
| 142 | -            array_filter($this->getMap(), function ($element) { | |
| 142 | +            array_filter($this->getMap(), function($element) { | |
| 143 | 143 | return in_array($element[static::KEY_TYPE], static::ATTRIBUTE_TYPES_WITH_OPTIONS); | 
| 144 | 144 | }) | 
| 145 | 145 | ); | 
| 146 | 146 | |
| 147 | 147 | static::$attributesForSkippingMap = array_map( | 
| 148 | -            function ($element) { | |
| 148 | +            function($element) { | |
| 149 | 149 | return $element[static::KEY_KEY]; | 
| 150 | 150 | }, | 
| 151 | -            array_filter($this->getMap(), function ($element) { | |
| 151 | +            array_filter($this->getMap(), function($element) { | |
| 152 | 152 | return in_array($element[static::KEY_TYPE], static::ATTRIBUTES_TYPES_FOR_SKIPPING) && $element[static::KEY_KEY] != static::ATTRIBUTE_PRICE; | 
| 153 | 153 | }) | 
| 154 | 154 | ); | 
| @@ -211,8 +211,7 @@ discard block | ||
| 211 | 211 | |
| 212 | 212 |          foreach ($optionKeys as $optionKey) { | 
| 213 | 213 | $options[] = array_key_exists($optionKey, static::$attributeOptionMap[$attributeKey]) ? | 
| 214 | - static::$attributeOptionMap[$attributeKey][$optionKey] : | |
| 215 | - $optionKey; | |
| 214 | + static::$attributeOptionMap[$attributeKey][$optionKey] : $optionKey; | |
| 216 | 215 | } | 
| 217 | 216 | |
| 218 | 217 | return $options; | 
| @@ -233,8 +232,7 @@ discard block | ||
| 233 | 232 | |
| 234 | 233 | // Concatenate with comma for multiselect values | 
| 235 | 234 | $value[$locale][static::KEY_DATA] = isset($value[$locale][static::KEY_DATA]) ? | 
| 236 | - $value[$locale][static::KEY_DATA] . ', ' . $optionValue : | |
| 237 | - $optionValue; | |
| 235 | + $value[$locale][static::KEY_DATA].', '.$optionValue : $optionValue; | |
| 238 | 236 | } | 
| 239 | 237 | } | 
| 240 | 238 | |
| @@ -247,7 +247,7 @@ discard block | ||
| 247 | 247 | */ | 
| 248 | 248 | protected function addAkeneoPimProcesses(Container $container): Container | 
| 249 | 249 |      { | 
| 250 | -        $container[static::AKENEO_PIM_MIDDLEWARE_PROCESSES] = function () { | |
| 250 | +        $container[static::AKENEO_PIM_MIDDLEWARE_PROCESSES] = function() { | |
| 251 | 251 | return $this->getAkeneoPimProcessesPlugins(); | 
| 252 | 252 | }; | 
| 253 | 253 | |
| @@ -261,7 +261,7 @@ discard block | ||
| 261 | 261 | */ | 
| 262 | 262 | protected function addServiceAkeneoPim(Container $container): Container | 
| 263 | 263 |      { | 
| 264 | -        $container[static::SERVICE_AKENEO_PIM] = function (Container $container) { | |
| 264 | +        $container[static::SERVICE_AKENEO_PIM] = function(Container $container) { | |
| 265 | 265 | return new AkeneoPimMiddlewareConnectorToAkeneoPimServiceBridge($container->getLocator()->akeneoPim()->service()); | 
| 266 | 266 | }; | 
| 267 | 267 | |
| @@ -275,7 +275,7 @@ discard block | ||
| 275 | 275 | */ | 
| 276 | 276 | protected function addFacadeProcess(Container $container): Container | 
| 277 | 277 |      { | 
| 278 | -        $container[static::FACADE_PROCESS] = function (Container $container) { | |
| 278 | +        $container[static::FACADE_PROCESS] = function(Container $container) { | |
| 279 | 279 | return new AkeneoPimMiddlewareConnectorToProcessFacadeBridge($container->getLocator()->process()->facade()); | 
| 280 | 280 | }; | 
| 281 | 281 | |
| @@ -289,7 +289,7 @@ discard block | ||
| 289 | 289 | */ | 
| 290 | 290 | protected function addFacadeProduct(Container $container): Container | 
| 291 | 291 |      { | 
| 292 | -        $container[static::FACADE_PRODUCT] = function (Container $container) { | |
| 292 | +        $container[static::FACADE_PRODUCT] = function(Container $container) { | |
| 293 | 293 | return new AkeneoPimMiddlewareConnectorToProductFacadeBridge($container->getLocator()->product()->facade()); | 
| 294 | 294 | }; | 
| 295 | 295 | |
| @@ -303,7 +303,7 @@ discard block | ||
| 303 | 303 | */ | 
| 304 | 304 | protected function addServiceUtilText(Container $container): Container | 
| 305 | 305 |      { | 
| 306 | -        $container[static::SERVICE_UTIL_TEXT] = function (Container $container) { | |
| 306 | +        $container[static::SERVICE_UTIL_TEXT] = function(Container $container) { | |
| 307 | 307 | return new AkeneoPimMiddlewareConnectorToUtilTextBridge($container->getLocator()->utilText()->service()); | 
| 308 | 308 | }; | 
| 309 | 309 | |
| @@ -336,7 +336,7 @@ discard block | ||
| 336 | 336 | */ | 
| 337 | 337 | protected function addDefaultAkeneoPimProcesses(Container $container): Container | 
| 338 | 338 |      { | 
| 339 | -        $container[static::DEFAULT_AKENEO_PIM_MIDDLEWARE_PROCESSES] = function () { | |
| 339 | +        $container[static::DEFAULT_AKENEO_PIM_MIDDLEWARE_PROCESSES] = function() { | |
| 340 | 340 | return $this->getDefaultAkeneoPimProcessesPlugins(); | 
| 341 | 341 | }; | 
| 342 | 342 | |
| @@ -362,7 +362,7 @@ discard block | ||
| 362 | 362 | */ | 
| 363 | 363 | protected function addDefaultLoggerConfigPlugin($container): Container | 
| 364 | 364 |      { | 
| 365 | -        $container[static::AKENEO_PIM_MIDDLEWARE_LOGGER_CONFIG] = function () { | |
| 365 | +        $container[static::AKENEO_PIM_MIDDLEWARE_LOGGER_CONFIG] = function() { | |
| 366 | 366 | return $this->getDefaultLoggerConfigPlugin(); | 
| 367 | 367 | }; | 
| 368 | 368 | |
| @@ -384,18 +384,18 @@ discard block | ||
| 384 | 384 | */ | 
| 385 | 385 | protected function addAttributeImportProcessPlugins(Container $container): Container | 
| 386 | 386 |      { | 
| 387 | -        $container[static::ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN] = function () { | |
| 387 | +        $container[static::ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN] = function() { | |
| 388 | 388 | return new AttributeAkeneoApiStreamPlugin(); | 
| 389 | 389 | }; | 
| 390 | -        $container[static::ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { | |
| 390 | +        $container[static::ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { | |
| 391 | 391 | return new AttributeWriteStreamPlugin(); | 
| 392 | 392 | }; | 
| 393 | 393 | |
| 394 | -        $container[static::ATTRIBUTE_IMPORT_ITERATOR_PLUGIN] = function () { | |
| 394 | +        $container[static::ATTRIBUTE_IMPORT_ITERATOR_PLUGIN] = function() { | |
| 395 | 395 | return new NullIteratorPlugin(); | 
| 396 | 396 | }; | 
| 397 | 397 | |
| 398 | -        $container[static::ATTRIBUTE_IMPORT_STAGE_PLUGINS] = function () { | |
| 398 | +        $container[static::ATTRIBUTE_IMPORT_STAGE_PLUGINS] = function() { | |
| 399 | 399 | return [ | 
| 400 | 400 | new StreamReaderStagePlugin(), | 
| 401 | 401 | new AttributeMapPreparationMapperStagePlugin(), | 
| @@ -405,11 +405,11 @@ discard block | ||
| 405 | 405 | ]; | 
| 406 | 406 | }; | 
| 407 | 407 | |
| 408 | -        $container[static::ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { | |
| 408 | +        $container[static::ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { | |
| 409 | 409 | return []; | 
| 410 | 410 | }; | 
| 411 | 411 | |
| 412 | -        $container[static::ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS] = function () { | |
| 412 | +        $container[static::ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS] = function() { | |
| 413 | 413 | return []; | 
| 414 | 414 | }; | 
| 415 | 415 | |
| @@ -423,18 +423,18 @@ discard block | ||
| 423 | 423 | */ | 
| 424 | 424 | protected function addAttributeMapProcessPlugins(Container $container): Container | 
| 425 | 425 |      { | 
| 426 | -        $container[static::ATTRIBUTE_MAP_INPUT_STREAM_PLUGIN] = function () { | |
| 426 | +        $container[static::ATTRIBUTE_MAP_INPUT_STREAM_PLUGIN] = function() { | |
| 427 | 427 | return new AttributeAkeneoApiStreamPlugin(); | 
| 428 | 428 | }; | 
| 429 | -        $container[static::ATTRIBUTE_MAP_OUTPUT_STREAM_PLUGIN] = function () { | |
| 429 | +        $container[static::ATTRIBUTE_MAP_OUTPUT_STREAM_PLUGIN] = function() { | |
| 430 | 430 | return new JsonOutputStreamPlugin(); | 
| 431 | 431 | }; | 
| 432 | 432 | |
| 433 | -        $container[static::ATTRIBUTE_MAP_ITERATOR_PLUGIN] = function () { | |
| 433 | +        $container[static::ATTRIBUTE_MAP_ITERATOR_PLUGIN] = function() { | |
| 434 | 434 | return new NullIteratorPlugin(); | 
| 435 | 435 | }; | 
| 436 | 436 | |
| 437 | -        $container[static::ATTRIBUTE_MAP_STAGE_PLUGINS] = function () { | |
| 437 | +        $container[static::ATTRIBUTE_MAP_STAGE_PLUGINS] = function() { | |
| 438 | 438 | return [ | 
| 439 | 439 | new StreamReaderStagePlugin(), | 
| 440 | 440 | new AttributeMapPreparationMapperStagePlugin(), | 
| @@ -444,11 +444,11 @@ discard block | ||
| 444 | 444 | ]; | 
| 445 | 445 | }; | 
| 446 | 446 | |
| 447 | -        $container[static::ATTRIBUTE_MAP_PRE_PROCESSOR_PLUGINS] = function () { | |
| 447 | +        $container[static::ATTRIBUTE_MAP_PRE_PROCESSOR_PLUGINS] = function() { | |
| 448 | 448 | return []; | 
| 449 | 449 | }; | 
| 450 | 450 | |
| 451 | -        $container[static::ATTRIBUTE_MAP_POST_PROCESSOR_PLUGINS] = function () { | |
| 451 | +        $container[static::ATTRIBUTE_MAP_POST_PROCESSOR_PLUGINS] = function() { | |
| 452 | 452 | return []; | 
| 453 | 453 | }; | 
| 454 | 454 | |
| @@ -462,18 +462,18 @@ discard block | ||
| 462 | 462 | */ | 
| 463 | 463 | protected function addCategoryImportProcessPlugins(Container $container): Container | 
| 464 | 464 |      { | 
| 465 | -        $container[static::CATEGORY_IMPORT_INPUT_STREAM_PLUGIN] = function () { | |
| 465 | +        $container[static::CATEGORY_IMPORT_INPUT_STREAM_PLUGIN] = function() { | |
| 466 | 466 | return new CategoryAkeneoApiStreamPlugin(); | 
| 467 | 467 | }; | 
| 468 | -        $container[static::CATEGORY_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { | |
| 468 | +        $container[static::CATEGORY_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { | |
| 469 | 469 | return new CategoryWriteStreamPlugin(); | 
| 470 | 470 | }; | 
| 471 | 471 | |
| 472 | -        $container[static::CATEGORY_IMPORT_ITERATOR_PLUGIN] = function () { | |
| 472 | +        $container[static::CATEGORY_IMPORT_ITERATOR_PLUGIN] = function() { | |
| 473 | 473 | return new NullIteratorPlugin(); | 
| 474 | 474 | }; | 
| 475 | 475 | |
| 476 | -        $container[static::CATEGORY_IMPORT_STAGE_PLUGINS] = function () { | |
| 476 | +        $container[static::CATEGORY_IMPORT_STAGE_PLUGINS] = function() { | |
| 477 | 477 | return [ | 
| 478 | 478 | new StreamReaderStagePlugin(), | 
| 479 | 479 | new CategoryMapperStagePlugin(), | 
| @@ -482,11 +482,11 @@ discard block | ||
| 482 | 482 | ]; | 
| 483 | 483 | }; | 
| 484 | 484 | |
| 485 | -        $container[static::CATEGORY_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { | |
| 485 | +        $container[static::CATEGORY_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { | |
| 486 | 486 | return []; | 
| 487 | 487 | }; | 
| 488 | 488 | |
| 489 | -        $container[static::CATEGORY_IMPORT_POST_PROCESSOR_PLUGINS] = function () { | |
| 489 | +        $container[static::CATEGORY_IMPORT_POST_PROCESSOR_PLUGINS] = function() { | |
| 490 | 490 | return []; | 
| 491 | 491 | }; | 
| 492 | 492 | |
| @@ -500,18 +500,18 @@ discard block | ||
| 500 | 500 | */ | 
| 501 | 501 | protected function addLocaleMapImportProcessPlugins(Container $container): Container | 
| 502 | 502 |      { | 
| 503 | -        $container[static::LOCALE_MAP_IMPORT_INPUT_STREAM_PLUGIN] = function () { | |
| 503 | +        $container[static::LOCALE_MAP_IMPORT_INPUT_STREAM_PLUGIN] = function() { | |
| 504 | 504 | return new LocaleStreamPlugin(); | 
| 505 | 505 | }; | 
| 506 | -        $container[static::LOCALE_MAP_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { | |
| 506 | +        $container[static::LOCALE_MAP_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { | |
| 507 | 507 | return new JsonObjectWriteStreamPlugin(); | 
| 508 | 508 | }; | 
| 509 | 509 | |
| 510 | -        $container[static::LOCALE_MAP_IMPORT_ITERATOR_PLUGIN] = function () { | |
| 510 | +        $container[static::LOCALE_MAP_IMPORT_ITERATOR_PLUGIN] = function() { | |
| 511 | 511 | return new NullIteratorPlugin(); | 
| 512 | 512 | }; | 
| 513 | 513 | |
| 514 | -        $container[static::LOCALE_MAP_IMPORT_STAGE_PLUGINS] = function () { | |
| 514 | +        $container[static::LOCALE_MAP_IMPORT_STAGE_PLUGINS] = function() { | |
| 515 | 515 | return [ | 
| 516 | 516 | new StreamReaderStagePlugin(), | 
| 517 | 517 | new LocaleMapperStagePlugin(), | 
| @@ -519,11 +519,11 @@ discard block | ||
| 519 | 519 | ]; | 
| 520 | 520 | }; | 
| 521 | 521 | |
| 522 | -        $container[static::LOCALE_MAP_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { | |
| 522 | +        $container[static::LOCALE_MAP_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { | |
| 523 | 523 | return []; | 
| 524 | 524 | }; | 
| 525 | 525 | |
| 526 | -        $container[static::LOCALE_MAP_IMPORT_POST_PROCESSOR_PLUGINS] = function () { | |
| 526 | +        $container[static::LOCALE_MAP_IMPORT_POST_PROCESSOR_PLUGINS] = function() { | |
| 527 | 527 | return []; | 
| 528 | 528 | }; | 
| 529 | 529 | |
| @@ -537,18 +537,18 @@ discard block | ||
| 537 | 537 | */ | 
| 538 | 538 | protected function addProductImportProcessPlugins(Container $container): Container | 
| 539 | 539 |      { | 
| 540 | -        $container[static::PRODUCT_IMPORT_INPUT_STREAM_PLUGIN] = function () { | |
| 540 | +        $container[static::PRODUCT_IMPORT_INPUT_STREAM_PLUGIN] = function() { | |
| 541 | 541 | return new JsonRowInputStreamPlugin(); | 
| 542 | 542 | }; | 
| 543 | -        $container[static::PRODUCT_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { | |
| 543 | +        $container[static::PRODUCT_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { | |
| 544 | 544 | return new ProductConcreteWriteStreamPlugin(); | 
| 545 | 545 | }; | 
| 546 | 546 | |
| 547 | -        $container[static::PRODUCT_IMPORT_ITERATOR_PLUGIN] = function () { | |
| 547 | +        $container[static::PRODUCT_IMPORT_ITERATOR_PLUGIN] = function() { | |
| 548 | 548 | return new NullIteratorPlugin(); | 
| 549 | 549 | }; | 
| 550 | 550 | |
| 551 | -        $container[static::PRODUCT_IMPORT_STAGE_PLUGINS] = function () { | |
| 551 | +        $container[static::PRODUCT_IMPORT_STAGE_PLUGINS] = function() { | |
| 552 | 552 | return [ | 
| 553 | 553 | new StreamReaderStagePlugin(), | 
| 554 | 554 | new DefaultProductImportValidatorStagePlugin(), | 
| @@ -558,11 +558,11 @@ discard block | ||
| 558 | 558 | ]; | 
| 559 | 559 | }; | 
| 560 | 560 | |
| 561 | -        $container[static::PRODUCT_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { | |
| 561 | +        $container[static::PRODUCT_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { | |
| 562 | 562 | return []; | 
| 563 | 563 | }; | 
| 564 | 564 | |
| 565 | -        $container[static::PRODUCT_IMPORT_POST_PROCESSOR_PLUGINS] = function () { | |
| 565 | +        $container[static::PRODUCT_IMPORT_POST_PROCESSOR_PLUGINS] = function() { | |
| 566 | 566 | return []; | 
| 567 | 567 | }; | 
| 568 | 568 | |
| @@ -576,18 +576,18 @@ discard block | ||
| 576 | 576 | */ | 
| 577 | 577 | protected function addProductModelImportProcessPlugins(Container $container): Container | 
| 578 | 578 |      { | 
| 579 | -        $container[static::PRODUCT_MODEL_IMPORT_INPUT_STREAM_PLUGIN] = function () { | |
| 579 | +        $container[static::PRODUCT_MODEL_IMPORT_INPUT_STREAM_PLUGIN] = function() { | |
| 580 | 580 | return new JsonInputStreamPlugin(); | 
| 581 | 581 | }; | 
| 582 | -        $container[static::PRODUCT_MODEL_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { | |
| 582 | +        $container[static::PRODUCT_MODEL_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { | |
| 583 | 583 | return new ProductAbstractWriteStreamPlugin(); | 
| 584 | 584 | }; | 
| 585 | 585 | |
| 586 | -        $container[static::PRODUCT_MODEL_IMPORT_ITERATOR_PLUGIN] = function () { | |
| 586 | +        $container[static::PRODUCT_MODEL_IMPORT_ITERATOR_PLUGIN] = function() { | |
| 587 | 587 | return new NullIteratorPlugin(); | 
| 588 | 588 | }; | 
| 589 | 589 | |
| 590 | -        $container[static::PRODUCT_MODEL_IMPORT_STAGE_PLUGINS] = function () { | |
| 590 | +        $container[static::PRODUCT_MODEL_IMPORT_STAGE_PLUGINS] = function() { | |
| 591 | 591 | return [ | 
| 592 | 592 | new StreamReaderStagePlugin(), | 
| 593 | 593 | new DefaultProductModelImportValidatorStagePlugin(), | 
| @@ -597,11 +597,11 @@ discard block | ||
| 597 | 597 | ]; | 
| 598 | 598 | }; | 
| 599 | 599 | |
| 600 | -        $container[static::PRODUCT_MODEL_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { | |
| 600 | +        $container[static::PRODUCT_MODEL_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { | |
| 601 | 601 | return []; | 
| 602 | 602 | }; | 
| 603 | 603 | |
| 604 | -        $container[static::PRODUCT_MODEL_IMPORT_POST_PROCESSOR_PLUGINS] = function () { | |
| 604 | +        $container[static::PRODUCT_MODEL_IMPORT_POST_PROCESSOR_PLUGINS] = function() { | |
| 605 | 605 | return []; | 
| 606 | 606 | }; | 
| 607 | 607 | |
| @@ -615,29 +615,29 @@ discard block | ||
| 615 | 615 | */ | 
| 616 | 616 | protected function addProductPreparationProcessPlugins(Container $container): Container | 
| 617 | 617 |      { | 
| 618 | -        $container[static::PRODUCT_PREPARATION_INPUT_STREAM_PLUGIN] = function () { | |
| 618 | +        $container[static::PRODUCT_PREPARATION_INPUT_STREAM_PLUGIN] = function() { | |
| 619 | 619 | return new ProductAkeneoApiStreamPlugin(); | 
| 620 | 620 | }; | 
| 621 | -        $container[static::PRODUCT_PREPARATION_OUTPUT_STREAM_PLUGIN] = function () { | |
| 621 | +        $container[static::PRODUCT_PREPARATION_OUTPUT_STREAM_PLUGIN] = function() { | |
| 622 | 622 | return new JsonRowOutputStreamPlugin(); | 
| 623 | 623 | }; | 
| 624 | 624 | |
| 625 | -        $container[static::PRODUCT_PREPARATION_ITERATOR_PLUGIN] = function () { | |
| 625 | +        $container[static::PRODUCT_PREPARATION_ITERATOR_PLUGIN] = function() { | |
| 626 | 626 | return new NullIteratorPlugin(); | 
| 627 | 627 | }; | 
| 628 | 628 | |
| 629 | -        $container[static::PRODUCT_PREPARATION_STAGE_PLUGINS] = function () { | |
| 629 | +        $container[static::PRODUCT_PREPARATION_STAGE_PLUGINS] = function() { | |
| 630 | 630 | return [ | 
| 631 | 631 | new StreamReaderStagePlugin(), | 
| 632 | 632 | new StreamWriterStagePlugin(), | 
| 633 | 633 | ]; | 
| 634 | 634 | }; | 
| 635 | 635 | |
| 636 | -        $container[static::PRODUCT_PREPARATION_PRE_PROCESSOR_PLUGINS] = function () { | |
| 636 | +        $container[static::PRODUCT_PREPARATION_PRE_PROCESSOR_PLUGINS] = function() { | |
| 637 | 637 | return []; | 
| 638 | 638 | }; | 
| 639 | 639 | |
| 640 | -        $container[static::PRODUCT_PREPARATION_POST_PROCESSOR_PLUGINS] = function () { | |
| 640 | +        $container[static::PRODUCT_PREPARATION_POST_PROCESSOR_PLUGINS] = function() { | |
| 641 | 641 | return []; | 
| 642 | 642 | }; | 
| 643 | 643 | |
| @@ -651,29 +651,29 @@ discard block | ||
| 651 | 651 | */ | 
| 652 | 652 | protected function addProductModelPreparationProcessPlugins(Container $container): Container | 
| 653 | 653 |      { | 
| 654 | -        $container[static::PRODUCT_MODEL_PREPARATION_INPUT_STREAM_PLUGIN] = function () { | |
| 654 | +        $container[static::PRODUCT_MODEL_PREPARATION_INPUT_STREAM_PLUGIN] = function() { | |
| 655 | 655 | return new ProductModelAkeneoApiStreamPlugin(); | 
| 656 | 656 | }; | 
| 657 | -        $container[static::PRODUCT_MODEL_PREPARATION_OUTPUT_STREAM_PLUGIN] = function () { | |
| 657 | +        $container[static::PRODUCT_MODEL_PREPARATION_OUTPUT_STREAM_PLUGIN] = function() { | |
| 658 | 658 | return new JsonOutputStreamPlugin(); | 
| 659 | 659 | }; | 
| 660 | 660 | |
| 661 | -        $container[static::PRODUCT_MODEL_PREPARATION_ITERATOR_PLUGIN] = function () { | |
| 661 | +        $container[static::PRODUCT_MODEL_PREPARATION_ITERATOR_PLUGIN] = function() { | |
| 662 | 662 | return new NullIteratorPlugin(); | 
| 663 | 663 | }; | 
| 664 | 664 | |
| 665 | -        $container[static::PRODUCT_MODEL_PREPARATION_STAGE_PLUGINS] = function () { | |
| 665 | +        $container[static::PRODUCT_MODEL_PREPARATION_STAGE_PLUGINS] = function() { | |
| 666 | 666 | return [ | 
| 667 | 667 | new StreamReaderStagePlugin(), | 
| 668 | 668 | new StreamWriterStagePlugin(), | 
| 669 | 669 | ]; | 
| 670 | 670 | }; | 
| 671 | 671 | |
| 672 | -        $container[static::PRODUCT_MODEL_PREPARATION_PRE_PROCESSOR_PLUGINS] = function () { | |
| 672 | +        $container[static::PRODUCT_MODEL_PREPARATION_PRE_PROCESSOR_PLUGINS] = function() { | |
| 673 | 673 | return []; | 
| 674 | 674 | }; | 
| 675 | 675 | |
| 676 | -        $container[static::PRODUCT_MODEL_PREPARATION_POST_PROCESSOR_PLUGINS] = function () { | |
| 676 | +        $container[static::PRODUCT_MODEL_PREPARATION_POST_PROCESSOR_PLUGINS] = function() { | |
| 677 | 677 | return []; | 
| 678 | 678 | }; | 
| 679 | 679 | |
| @@ -687,18 +687,18 @@ discard block | ||
| 687 | 687 | */ | 
| 688 | 688 | protected function addTaxSetMapImportProcessPlugins(Container $container): Container | 
| 689 | 689 |      { | 
| 690 | -        $container[static::TAX_SET_MAP_IMPORT_INPUT_STREAM_PLUGIN] = function () { | |
| 690 | +        $container[static::TAX_SET_MAP_IMPORT_INPUT_STREAM_PLUGIN] = function() { | |
| 691 | 691 | return new TaxSetStreamPlugin(); | 
| 692 | 692 | }; | 
| 693 | -        $container[static::TAX_SET_MAP_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { | |
| 693 | +        $container[static::TAX_SET_MAP_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { | |
| 694 | 694 | return new JsonObjectWriteStreamPlugin(); | 
| 695 | 695 | }; | 
| 696 | 696 | |
| 697 | -        $container[static::TAX_SET_MAP_IMPORT_ITERATOR_PLUGIN] = function () { | |
| 697 | +        $container[static::TAX_SET_MAP_IMPORT_ITERATOR_PLUGIN] = function() { | |
| 698 | 698 | return new NullIteratorPlugin(); | 
| 699 | 699 | }; | 
| 700 | 700 | |
| 701 | -        $container[static::TAX_SET_MAP_IMPORT_STAGE_PLUGINS] = function () { | |
| 701 | +        $container[static::TAX_SET_MAP_IMPORT_STAGE_PLUGINS] = function() { | |
| 702 | 702 | return [ | 
| 703 | 703 | new StreamReaderStagePlugin(), | 
| 704 | 704 | new TaxSetMapperStagePlugin(), | 
| @@ -706,11 +706,11 @@ discard block | ||
| 706 | 706 | ]; | 
| 707 | 707 | }; | 
| 708 | 708 | |
| 709 | -        $container[static::TAX_SET_MAP_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { | |
| 709 | +        $container[static::TAX_SET_MAP_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { | |
| 710 | 710 | return []; | 
| 711 | 711 | }; | 
| 712 | 712 | |
| 713 | -        $container[static::TAX_SET_MAP_IMPORT_POST_PROCESSOR_PLUGINS] = function () { | |
| 713 | +        $container[static::TAX_SET_MAP_IMPORT_POST_PROCESSOR_PLUGINS] = function() { | |
| 714 | 714 | return []; | 
| 715 | 715 | }; | 
| 716 | 716 | |
| @@ -724,30 +724,30 @@ discard block | ||
| 724 | 724 | */ | 
| 725 | 725 | protected function addSuperAttributeImportProcessPlugins(Container $container): Container | 
| 726 | 726 |      { | 
| 727 | -        $container[static::SUPER_ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN] = function () { | |
| 727 | +        $container[static::SUPER_ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN] = function() { | |
| 728 | 728 | return new SuperAttributesAkeneoApiStreamPlugin(); | 
| 729 | 729 | }; | 
| 730 | 730 | |
| 731 | -        $container[static::SUPER_ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { | |
| 731 | +        $container[static::SUPER_ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { | |
| 732 | 732 | return new JsonSuperAttributeWriteStreamPlugin(); | 
| 733 | 733 | }; | 
| 734 | 734 | |
| 735 | -        $container[static::SUPER_ATTRIBUTE_IMPORT_ITERATOR_PLUGIN] = function () { | |
| 735 | +        $container[static::SUPER_ATTRIBUTE_IMPORT_ITERATOR_PLUGIN] = function() { | |
| 736 | 736 | return new NullIteratorPlugin(); | 
| 737 | 737 | }; | 
| 738 | 738 | |
| 739 | -        $container[static::SUPER_ATTRIBUTE_IMPORT_STAGE_PLUGINS] = function () { | |
| 739 | +        $container[static::SUPER_ATTRIBUTE_IMPORT_STAGE_PLUGINS] = function() { | |
| 740 | 740 | return [ | 
| 741 | 741 | new StreamReaderStagePlugin(), | 
| 742 | 742 | new StreamWriterStagePlugin(), | 
| 743 | 743 | ]; | 
| 744 | 744 | }; | 
| 745 | 745 | |
| 746 | -        $container[static::SUPER_ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { | |
| 746 | +        $container[static::SUPER_ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { | |
| 747 | 747 | return []; | 
| 748 | 748 | }; | 
| 749 | 749 | |
| 750 | -        $container[static::SUPER_ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS] = function () { | |
| 750 | +        $container[static::SUPER_ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS] = function() { | |
| 751 | 751 | return []; | 
| 752 | 752 | }; | 
| 753 | 753 | |
| @@ -761,7 +761,7 @@ discard block | ||
| 761 | 761 | */ | 
| 762 | 762 | protected function addAkeneoPimTranslatorFunctions($container): Container | 
| 763 | 763 |      { | 
| 764 | -        $container[static::AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS] = function () { | |
| 764 | +        $container[static::AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS] = function() { | |
| 765 | 765 | return $this->getAkeneoPimTranslatorFunctionPlugins(); | 
| 766 | 766 | }; | 
| 767 | 767 | |
| @@ -775,7 +775,7 @@ discard block | ||
| 775 | 775 | */ | 
| 776 | 776 | protected function addAkeneoPimValidators($container): Container | 
| 777 | 777 |      { | 
| 778 | -        $container[static::AKENEO_PIM_MIDDLEWARE_VALIDATORS] = function () { | |
| 778 | +        $container[static::AKENEO_PIM_MIDDLEWARE_VALIDATORS] = function() { | |
| 779 | 779 | return $this->getAkeneoPimValidatorPlugins(); | 
| 780 | 780 | }; | 
| 781 | 781 | |
| @@ -828,7 +828,7 @@ discard block | ||
| 828 | 828 | */ | 
| 829 | 829 | protected function addDefaultAkeneoPimTranslatorFunctions($container): Container | 
| 830 | 830 |      { | 
| 831 | -        $container[static::DEFAULT_AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS] = function () { | |
| 831 | +        $container[static::DEFAULT_AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS] = function() { | |
| 832 | 832 | return $this->getDefaultAkeneoPimTranslatorFunctionPlugins(); | 
| 833 | 833 | }; | 
| 834 | 834 | |
| @@ -914,7 +914,7 @@ discard block | ||
| 914 | 914 | */ | 
| 915 | 915 | protected function addDefaultCategoryImportStagePlugins($container): Container | 
| 916 | 916 |      { | 
| 917 | -        $container[static::DEFAULT_CATEGORY_IMPORT_STAGE_PLUGINS] = function () { | |
| 917 | +        $container[static::DEFAULT_CATEGORY_IMPORT_STAGE_PLUGINS] = function() { | |
| 918 | 918 | return [ | 
| 919 | 919 | new StreamReaderStagePlugin(), | 
| 920 | 920 | new DefaultCategoryMapperStagePlugin(), | 
| @@ -933,7 +933,7 @@ discard block | ||
| 933 | 933 | */ | 
| 934 | 934 | protected function addDefaultProductImportStagePlugins($container): Container | 
| 935 | 935 |      { | 
| 936 | -        $container[static::DEFAULT_PRODUCT_IMPORT_STAGE_PLUGINS] = function () { | |
| 936 | +        $container[static::DEFAULT_PRODUCT_IMPORT_STAGE_PLUGINS] = function() { | |
| 937 | 937 | return [ | 
| 938 | 938 | new StreamReaderStagePlugin(), | 
| 939 | 939 | new DefaultProductImportValidatorStagePlugin(), | 
| @@ -953,7 +953,7 @@ discard block | ||
| 953 | 953 | */ | 
| 954 | 954 | protected function addDefaultProductModelImportStagePlugins($container): Container | 
| 955 | 955 |      { | 
| 956 | -        $container[static::DEFAULT_PRODUCT_MODEL_IMPORT_STAGE_PLUGINS] = function () { | |
| 956 | +        $container[static::DEFAULT_PRODUCT_MODEL_IMPORT_STAGE_PLUGINS] = function() { | |
| 957 | 957 | return [ | 
| 958 | 958 | new StreamReaderStagePlugin(), | 
| 959 | 959 | new DefaultProductModelImportValidatorStagePlugin(), | 
| @@ -973,7 +973,7 @@ discard block | ||
| 973 | 973 | */ | 
| 974 | 974 | protected function addProductAbstractQuery($container): Container | 
| 975 | 975 |      { | 
| 976 | -        $container[static::PRODUCT_ABSTRACT_QUERY] = function () { | |
| 976 | +        $container[static::PRODUCT_ABSTRACT_QUERY] = function() { | |
| 977 | 977 | return SpyProductAbstractQuery::create(); | 
| 978 | 978 | }; | 
| 979 | 979 | |