@@ -190,15 +190,15 @@ discard block |
||
190 | 190 | */ |
191 | 191 | public function provideCommunicationLayerDependencies(Container $container): Container |
192 | 192 | { |
193 | - $container[static::SERVICE_AKENEO_PIM] = function (Container $container) { |
|
193 | + $container[static::SERVICE_AKENEO_PIM] = function(Container $container) { |
|
194 | 194 | return new AkeneoPimMiddlewareConnectorToAkeneoPimServiceBridge($container->getLocator()->akeneoPim()->service()); |
195 | 195 | }; |
196 | 196 | |
197 | - $container[static::FACADE_PROCESS] = function (Container $container) { |
|
197 | + $container[static::FACADE_PROCESS] = function(Container $container) { |
|
198 | 198 | return new AkeneoPimMiddlewareConnectorToProcessFacadeBridge($container->getLocator()->process()->facade()); |
199 | 199 | }; |
200 | 200 | |
201 | - $container[static::SERVICE_UTIL_TEXT] = function (Container $container) { |
|
201 | + $container[static::SERVICE_UTIL_TEXT] = function(Container $container) { |
|
202 | 202 | return new AkeneoPimMiddlewareConnectorToUtilTextBridge($container->getLocator()->utilText()->service()); |
203 | 203 | }; |
204 | 204 | |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | */ |
250 | 250 | protected function addAkeneoPimProcesses(Container $container): Container |
251 | 251 | { |
252 | - $container[static::AKENEO_PIM_MIDDLEWARE_PROCESSES] = function () { |
|
252 | + $container[static::AKENEO_PIM_MIDDLEWARE_PROCESSES] = function() { |
|
253 | 253 | return $this->getAkeneoPimProceseesPluginsStack(); |
254 | 254 | }; |
255 | 255 | |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | */ |
283 | 283 | protected function addDefaultAkeneoPimProcesses(Container $container): Container |
284 | 284 | { |
285 | - $container[static::DEFAULT_AKENEO_PIM_MIDDLEWARE_PROCESSES] = function () { |
|
285 | + $container[static::DEFAULT_AKENEO_PIM_MIDDLEWARE_PROCESSES] = function() { |
|
286 | 286 | return $this->getDefaultAkeneoPimProceseesPluginsStack(); |
287 | 287 | }; |
288 | 288 | |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | */ |
309 | 309 | protected function addDefaultLoggerConfigPlugin($container): Container |
310 | 310 | { |
311 | - $container[static::AKENEO_PIM_MIDDLEWARE_LOGGER_CONFIG] = function () { |
|
311 | + $container[static::AKENEO_PIM_MIDDLEWARE_LOGGER_CONFIG] = function() { |
|
312 | 312 | return $this->getDefaultLoggerConfigPlugin(); |
313 | 313 | }; |
314 | 314 | |
@@ -330,18 +330,18 @@ discard block |
||
330 | 330 | */ |
331 | 331 | protected function addAttributeImportProcessPlugins(Container $container): Container |
332 | 332 | { |
333 | - $container[static::ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
333 | + $container[static::ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
334 | 334 | return new AttributeAkeneoApiStreamPlugin(); |
335 | 335 | }; |
336 | - $container[static::ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
336 | + $container[static::ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
337 | 337 | return new AttributeWriteStreamPlugin(); |
338 | 338 | }; |
339 | 339 | |
340 | - $container[static::ATTRIBUTE_IMPORT_ITERATOR_PLUGIN] = function () { |
|
340 | + $container[static::ATTRIBUTE_IMPORT_ITERATOR_PLUGIN] = function() { |
|
341 | 341 | return new NullIteratorPlugin(); |
342 | 342 | }; |
343 | 343 | |
344 | - $container[static::ATTRIBUTE_IMPORT_STAGE_PLUGINS] = function () { |
|
344 | + $container[static::ATTRIBUTE_IMPORT_STAGE_PLUGINS] = function() { |
|
345 | 345 | return [ |
346 | 346 | new StreamReaderStagePlugin(), |
347 | 347 | new AttributeMapPreparationMapperStagePlugin(), |
@@ -351,11 +351,11 @@ discard block |
||
351 | 351 | ]; |
352 | 352 | }; |
353 | 353 | |
354 | - $container[static::ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
354 | + $container[static::ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
355 | 355 | return []; |
356 | 356 | }; |
357 | 357 | |
358 | - $container[static::ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
358 | + $container[static::ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
359 | 359 | return []; |
360 | 360 | }; |
361 | 361 | |
@@ -369,18 +369,18 @@ discard block |
||
369 | 369 | */ |
370 | 370 | protected function addAttributeMapProcessPlugins(Container $container): Container |
371 | 371 | { |
372 | - $container[static::ATTRIBUTE_MAP_INPUT_STREAM_PLUGIN] = function () { |
|
372 | + $container[static::ATTRIBUTE_MAP_INPUT_STREAM_PLUGIN] = function() { |
|
373 | 373 | return new AttributeAkeneoApiStreamPlugin(); |
374 | 374 | }; |
375 | - $container[static::ATTRIBUTE_MAP_OUTPUT_STREAM_PLUGIN] = function () { |
|
375 | + $container[static::ATTRIBUTE_MAP_OUTPUT_STREAM_PLUGIN] = function() { |
|
376 | 376 | return new JsonOutputStreamPlugin(); |
377 | 377 | }; |
378 | 378 | |
379 | - $container[static::ATTRIBUTE_MAP_ITERATOR_PLUGIN] = function () { |
|
379 | + $container[static::ATTRIBUTE_MAP_ITERATOR_PLUGIN] = function() { |
|
380 | 380 | return new NullIteratorPlugin(); |
381 | 381 | }; |
382 | 382 | |
383 | - $container[static::ATTRIBUTE_MAP_STAGE_PLUGINS] = function () { |
|
383 | + $container[static::ATTRIBUTE_MAP_STAGE_PLUGINS] = function() { |
|
384 | 384 | return [ |
385 | 385 | new StreamReaderStagePlugin(), |
386 | 386 | new AttributeMapPreparationMapperStagePlugin(), |
@@ -390,11 +390,11 @@ discard block |
||
390 | 390 | ]; |
391 | 391 | }; |
392 | 392 | |
393 | - $container[static::ATTRIBUTE_MAP_PRE_PROCESSOR_PLUGINS] = function () { |
|
393 | + $container[static::ATTRIBUTE_MAP_PRE_PROCESSOR_PLUGINS] = function() { |
|
394 | 394 | return []; |
395 | 395 | }; |
396 | 396 | |
397 | - $container[static::ATTRIBUTE_MAP_POST_PROCESSOR_PLUGINS] = function () { |
|
397 | + $container[static::ATTRIBUTE_MAP_POST_PROCESSOR_PLUGINS] = function() { |
|
398 | 398 | return []; |
399 | 399 | }; |
400 | 400 | |
@@ -408,18 +408,18 @@ discard block |
||
408 | 408 | */ |
409 | 409 | protected function addCategoryImportProcessPlugins(Container $container): Container |
410 | 410 | { |
411 | - $container[static::CATEGORY_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
411 | + $container[static::CATEGORY_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
412 | 412 | return new CategoryAkeneoApiStreamPlugin(); |
413 | 413 | }; |
414 | - $container[static::CATEGORY_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
414 | + $container[static::CATEGORY_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
415 | 415 | return new CategoryWriteStreamPlugin(); |
416 | 416 | }; |
417 | 417 | |
418 | - $container[static::CATEGORY_IMPORT_ITERATOR_PLUGIN] = function () { |
|
418 | + $container[static::CATEGORY_IMPORT_ITERATOR_PLUGIN] = function() { |
|
419 | 419 | return new NullIteratorPlugin(); |
420 | 420 | }; |
421 | 421 | |
422 | - $container[static::CATEGORY_IMPORT_STAGE_PLUGINS] = function () { |
|
422 | + $container[static::CATEGORY_IMPORT_STAGE_PLUGINS] = function() { |
|
423 | 423 | return [ |
424 | 424 | new StreamReaderStagePlugin(), |
425 | 425 | new CategoryMapperStagePlugin(), |
@@ -428,11 +428,11 @@ discard block |
||
428 | 428 | ]; |
429 | 429 | }; |
430 | 430 | |
431 | - $container[static::CATEGORY_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
431 | + $container[static::CATEGORY_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
432 | 432 | return []; |
433 | 433 | }; |
434 | 434 | |
435 | - $container[static::CATEGORY_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
435 | + $container[static::CATEGORY_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
436 | 436 | return []; |
437 | 437 | }; |
438 | 438 | |
@@ -446,18 +446,18 @@ discard block |
||
446 | 446 | */ |
447 | 447 | protected function addLocaleMapImportProcessPlugins(Container $container): Container |
448 | 448 | { |
449 | - $container[static::LOCALE_MAP_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
449 | + $container[static::LOCALE_MAP_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
450 | 450 | return new LocaleStreamPlugin(); |
451 | 451 | }; |
452 | - $container[static::LOCALE_MAP_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
452 | + $container[static::LOCALE_MAP_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
453 | 453 | return new JsonObjectWriteStreamPlugin(); |
454 | 454 | }; |
455 | 455 | |
456 | - $container[static::LOCALE_MAP_IMPORT_ITERATOR_PLUGIN] = function () { |
|
456 | + $container[static::LOCALE_MAP_IMPORT_ITERATOR_PLUGIN] = function() { |
|
457 | 457 | return new NullIteratorPlugin(); |
458 | 458 | }; |
459 | 459 | |
460 | - $container[static::LOCALE_MAP_IMPORT_STAGE_PLUGINS] = function () { |
|
460 | + $container[static::LOCALE_MAP_IMPORT_STAGE_PLUGINS] = function() { |
|
461 | 461 | return [ |
462 | 462 | new StreamReaderStagePlugin(), |
463 | 463 | new LocaleMapperStagePlugin(), |
@@ -465,11 +465,11 @@ discard block |
||
465 | 465 | ]; |
466 | 466 | }; |
467 | 467 | |
468 | - $container[static::LOCALE_MAP_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
468 | + $container[static::LOCALE_MAP_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
469 | 469 | return []; |
470 | 470 | }; |
471 | 471 | |
472 | - $container[static::LOCALE_MAP_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
472 | + $container[static::LOCALE_MAP_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
473 | 473 | return []; |
474 | 474 | }; |
475 | 475 | |
@@ -483,18 +483,18 @@ discard block |
||
483 | 483 | */ |
484 | 484 | protected function addProductImportProcessPlugins(Container $container): Container |
485 | 485 | { |
486 | - $container[static::PRODUCT_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
486 | + $container[static::PRODUCT_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
487 | 487 | return new JsonInputStreamPlugin(); |
488 | 488 | }; |
489 | - $container[static::PRODUCT_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
489 | + $container[static::PRODUCT_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
490 | 490 | return new ProductConcreteWriteStreamPlugin(); |
491 | 491 | }; |
492 | 492 | |
493 | - $container[static::PRODUCT_IMPORT_ITERATOR_PLUGIN] = function () { |
|
493 | + $container[static::PRODUCT_IMPORT_ITERATOR_PLUGIN] = function() { |
|
494 | 494 | return new NullIteratorPlugin(); |
495 | 495 | }; |
496 | 496 | |
497 | - $container[static::PRODUCT_IMPORT_STAGE_PLUGINS] = function () { |
|
497 | + $container[static::PRODUCT_IMPORT_STAGE_PLUGINS] = function() { |
|
498 | 498 | return [ |
499 | 499 | new StreamReaderStagePlugin(), |
500 | 500 | new DefaultProductImportValidatorStagePlugin(), |
@@ -504,13 +504,13 @@ discard block |
||
504 | 504 | ]; |
505 | 505 | }; |
506 | 506 | |
507 | - $container[static::PRODUCT_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
507 | + $container[static::PRODUCT_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
508 | 508 | return [ |
509 | 509 | new PrepareSkuValidationListPreHookPlugin(), |
510 | 510 | ]; |
511 | 511 | }; |
512 | 512 | |
513 | - $container[static::PRODUCT_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
513 | + $container[static::PRODUCT_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
514 | 514 | return []; |
515 | 515 | }; |
516 | 516 | |
@@ -524,18 +524,18 @@ discard block |
||
524 | 524 | */ |
525 | 525 | protected function addProductModelImportProcessPlugins(Container $container): Container |
526 | 526 | { |
527 | - $container[static::PRODUCT_MODEL_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
527 | + $container[static::PRODUCT_MODEL_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
528 | 528 | return new JsonInputStreamPlugin(); |
529 | 529 | }; |
530 | - $container[static::PRODUCT_MODEL_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
530 | + $container[static::PRODUCT_MODEL_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
531 | 531 | return new ProductAbstractWriteStreamPlugin(); |
532 | 532 | }; |
533 | 533 | |
534 | - $container[static::PRODUCT_MODEL_IMPORT_ITERATOR_PLUGIN] = function () { |
|
534 | + $container[static::PRODUCT_MODEL_IMPORT_ITERATOR_PLUGIN] = function() { |
|
535 | 535 | return new NullIteratorPlugin(); |
536 | 536 | }; |
537 | 537 | |
538 | - $container[static::PRODUCT_MODEL_IMPORT_STAGE_PLUGINS] = function () { |
|
538 | + $container[static::PRODUCT_MODEL_IMPORT_STAGE_PLUGINS] = function() { |
|
539 | 539 | return [ |
540 | 540 | new StreamReaderStagePlugin(), |
541 | 541 | new DefaultProductModelImportValidatorStagePlugin(), |
@@ -545,11 +545,11 @@ discard block |
||
545 | 545 | ]; |
546 | 546 | }; |
547 | 547 | |
548 | - $container[static::PRODUCT_MODEL_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
548 | + $container[static::PRODUCT_MODEL_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
549 | 549 | return []; |
550 | 550 | }; |
551 | 551 | |
552 | - $container[static::PRODUCT_MODEL_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
552 | + $container[static::PRODUCT_MODEL_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
553 | 553 | return []; |
554 | 554 | }; |
555 | 555 | |
@@ -563,29 +563,29 @@ discard block |
||
563 | 563 | */ |
564 | 564 | protected function addProductPreparationProcessPlugins(Container $container): Container |
565 | 565 | { |
566 | - $container[static::PRODUCT_PREPARATION_INPUT_STREAM_PLUGIN] = function () { |
|
566 | + $container[static::PRODUCT_PREPARATION_INPUT_STREAM_PLUGIN] = function() { |
|
567 | 567 | return new ProductAkeneoApiStreamPlugin(); |
568 | 568 | }; |
569 | - $container[static::PRODUCT_PREPARATION_OUTPUT_STREAM_PLUGIN] = function () { |
|
569 | + $container[static::PRODUCT_PREPARATION_OUTPUT_STREAM_PLUGIN] = function() { |
|
570 | 570 | return new JsonOutputStreamPlugin(); |
571 | 571 | }; |
572 | 572 | |
573 | - $container[static::PRODUCT_PREPARATION_ITERATOR_PLUGIN] = function () { |
|
573 | + $container[static::PRODUCT_PREPARATION_ITERATOR_PLUGIN] = function() { |
|
574 | 574 | return new NullIteratorPlugin(); |
575 | 575 | }; |
576 | 576 | |
577 | - $container[static::PRODUCT_PREPARATION_STAGE_PLUGINS] = function () { |
|
577 | + $container[static::PRODUCT_PREPARATION_STAGE_PLUGINS] = function() { |
|
578 | 578 | return [ |
579 | 579 | new StreamReaderStagePlugin(), |
580 | 580 | new StreamWriterStagePlugin(), |
581 | 581 | ]; |
582 | 582 | }; |
583 | 583 | |
584 | - $container[static::PRODUCT_PREPARATION_PRE_PROCESSOR_PLUGINS] = function () { |
|
584 | + $container[static::PRODUCT_PREPARATION_PRE_PROCESSOR_PLUGINS] = function() { |
|
585 | 585 | return []; |
586 | 586 | }; |
587 | 587 | |
588 | - $container[static::PRODUCT_PREPARATION_POST_PROCESSOR_PLUGINS] = function () { |
|
588 | + $container[static::PRODUCT_PREPARATION_POST_PROCESSOR_PLUGINS] = function() { |
|
589 | 589 | return []; |
590 | 590 | }; |
591 | 591 | |
@@ -599,29 +599,29 @@ discard block |
||
599 | 599 | */ |
600 | 600 | protected function addProductModelPreparationProcessPlugins(Container $container): Container |
601 | 601 | { |
602 | - $container[static::PRODUCT_MODEL_PREPARATION_INPUT_STREAM_PLUGIN] = function () { |
|
602 | + $container[static::PRODUCT_MODEL_PREPARATION_INPUT_STREAM_PLUGIN] = function() { |
|
603 | 603 | return new ProductModelAkeneoApiStreamPlugin(); |
604 | 604 | }; |
605 | - $container[static::PRODUCT_MODEL_PREPARATION_OUTPUT_STREAM_PLUGIN] = function () { |
|
605 | + $container[static::PRODUCT_MODEL_PREPARATION_OUTPUT_STREAM_PLUGIN] = function() { |
|
606 | 606 | return new JsonOutputStreamPlugin(); |
607 | 607 | }; |
608 | 608 | |
609 | - $container[static::PRODUCT_MODEL_PREPARATION_ITERATOR_PLUGIN] = function () { |
|
609 | + $container[static::PRODUCT_MODEL_PREPARATION_ITERATOR_PLUGIN] = function() { |
|
610 | 610 | return new NullIteratorPlugin(); |
611 | 611 | }; |
612 | 612 | |
613 | - $container[static::PRODUCT_MODEL_PREPARATION_STAGE_PLUGINS] = function () { |
|
613 | + $container[static::PRODUCT_MODEL_PREPARATION_STAGE_PLUGINS] = function() { |
|
614 | 614 | return [ |
615 | 615 | new StreamReaderStagePlugin(), |
616 | 616 | new StreamWriterStagePlugin(), |
617 | 617 | ]; |
618 | 618 | }; |
619 | 619 | |
620 | - $container[static::PRODUCT_MODEL_PREPARATION_PRE_PROCESSOR_PLUGINS] = function () { |
|
620 | + $container[static::PRODUCT_MODEL_PREPARATION_PRE_PROCESSOR_PLUGINS] = function() { |
|
621 | 621 | return []; |
622 | 622 | }; |
623 | 623 | |
624 | - $container[static::PRODUCT_MODEL_PREPARATION_POST_PROCESSOR_PLUGINS] = function () { |
|
624 | + $container[static::PRODUCT_MODEL_PREPARATION_POST_PROCESSOR_PLUGINS] = function() { |
|
625 | 625 | return []; |
626 | 626 | }; |
627 | 627 | |
@@ -635,18 +635,18 @@ discard block |
||
635 | 635 | */ |
636 | 636 | protected function addTaxSetMapImportProcessPlugins(Container $container): Container |
637 | 637 | { |
638 | - $container[static::TAX_SET_MAP_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
638 | + $container[static::TAX_SET_MAP_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
639 | 639 | return new TaxSetStreamPlugin(); |
640 | 640 | }; |
641 | - $container[static::TAX_SET_MAP_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
641 | + $container[static::TAX_SET_MAP_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
642 | 642 | return new JsonObjectWriteStreamPlugin(); |
643 | 643 | }; |
644 | 644 | |
645 | - $container[static::TAX_SET_MAP_IMPORT_ITERATOR_PLUGIN] = function () { |
|
645 | + $container[static::TAX_SET_MAP_IMPORT_ITERATOR_PLUGIN] = function() { |
|
646 | 646 | return new NullIteratorPlugin(); |
647 | 647 | }; |
648 | 648 | |
649 | - $container[static::TAX_SET_MAP_IMPORT_STAGE_PLUGINS] = function () { |
|
649 | + $container[static::TAX_SET_MAP_IMPORT_STAGE_PLUGINS] = function() { |
|
650 | 650 | return [ |
651 | 651 | new StreamReaderStagePlugin(), |
652 | 652 | new TaxSetMapperStagePlugin(), |
@@ -654,11 +654,11 @@ discard block |
||
654 | 654 | ]; |
655 | 655 | }; |
656 | 656 | |
657 | - $container[static::TAX_SET_MAP_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
657 | + $container[static::TAX_SET_MAP_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
658 | 658 | return []; |
659 | 659 | }; |
660 | 660 | |
661 | - $container[static::TAX_SET_MAP_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
661 | + $container[static::TAX_SET_MAP_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
662 | 662 | return []; |
663 | 663 | }; |
664 | 664 | |
@@ -672,30 +672,30 @@ discard block |
||
672 | 672 | */ |
673 | 673 | protected function addSuperAttributeImportProcessPlugins(Container $container): Container |
674 | 674 | { |
675 | - $container[static::SUPER_ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN] = function () { |
|
675 | + $container[static::SUPER_ATTRIBUTE_IMPORT_INPUT_STREAM_PLUGIN] = function() { |
|
676 | 676 | return new SuperAttributesAkeneoApiStreamPlugin(); |
677 | 677 | }; |
678 | 678 | |
679 | - $container[static::SUPER_ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN] = function () { |
|
679 | + $container[static::SUPER_ATTRIBUTE_IMPORT_OUTPUT_STREAM_PLUGIN] = function() { |
|
680 | 680 | return new JsonSuperAttributeWriteStreamPlugin(); |
681 | 681 | }; |
682 | 682 | |
683 | - $container[static::SUPER_ATTRIBUTE_IMPORT_ITERATOR_PLUGIN] = function () { |
|
683 | + $container[static::SUPER_ATTRIBUTE_IMPORT_ITERATOR_PLUGIN] = function() { |
|
684 | 684 | return new NullIteratorPlugin(); |
685 | 685 | }; |
686 | 686 | |
687 | - $container[static::SUPER_ATTRIBUTE_IMPORT_STAGE_PLUGINS] = function () { |
|
687 | + $container[static::SUPER_ATTRIBUTE_IMPORT_STAGE_PLUGINS] = function() { |
|
688 | 688 | return [ |
689 | 689 | new StreamReaderStagePlugin(), |
690 | 690 | new StreamWriterStagePlugin(), |
691 | 691 | ]; |
692 | 692 | }; |
693 | 693 | |
694 | - $container[static::SUPER_ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS] = function () { |
|
694 | + $container[static::SUPER_ATTRIBUTE_IMPORT_PRE_PROCESSOR_PLUGINS] = function() { |
|
695 | 695 | return []; |
696 | 696 | }; |
697 | 697 | |
698 | - $container[static::SUPER_ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS] = function () { |
|
698 | + $container[static::SUPER_ATTRIBUTE_IMPORT_POST_PROCESSOR_PLUGINS] = function() { |
|
699 | 699 | return []; |
700 | 700 | }; |
701 | 701 | |
@@ -709,7 +709,7 @@ discard block |
||
709 | 709 | */ |
710 | 710 | protected function addAkeneoPimTranslatorFunctions($container): Container |
711 | 711 | { |
712 | - $container[static::AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS] = function () { |
|
712 | + $container[static::AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS] = function() { |
|
713 | 713 | return $this->getAkeneoPimTranslatorFunctionPluginsStack(); |
714 | 714 | }; |
715 | 715 | |
@@ -752,7 +752,7 @@ discard block |
||
752 | 752 | */ |
753 | 753 | protected function addDefaultAkeneoPimTranslatorFunctions($container): Container |
754 | 754 | { |
755 | - $container[static::DEFAULT_AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS] = function () { |
|
755 | + $container[static::DEFAULT_AKENEO_PIM_MIDDLEWARE_TRANSLATOR_FUNCTIONS] = function() { |
|
756 | 756 | return $this->getDefaultAkeneoPimTranslatorFunctionPluginsStack(); |
757 | 757 | }; |
758 | 758 | |
@@ -838,7 +838,7 @@ discard block |
||
838 | 838 | */ |
839 | 839 | protected function addDefaultCategoryImportStagePluginsStack($container) |
840 | 840 | { |
841 | - $container[static::DEFAULT_CATEGORY_IMPORT_STAGE_PLUGINS] = function () { |
|
841 | + $container[static::DEFAULT_CATEGORY_IMPORT_STAGE_PLUGINS] = function() { |
|
842 | 842 | return [ |
843 | 843 | new StreamReaderStagePlugin(), |
844 | 844 | new DefaultCategoryMapperStagePlugin(), |
@@ -857,7 +857,7 @@ discard block |
||
857 | 857 | */ |
858 | 858 | protected function addDefaultProductImportStagePluginsStack($container) |
859 | 859 | { |
860 | - $container[static::DEFAULT_PRODUCT_IMPORT_STAGE_PLUGINS] = function () { |
|
860 | + $container[static::DEFAULT_PRODUCT_IMPORT_STAGE_PLUGINS] = function() { |
|
861 | 861 | return [ |
862 | 862 | new StreamReaderStagePlugin(), |
863 | 863 | new DefaultProductImportValidatorStagePlugin(), |
@@ -877,7 +877,7 @@ discard block |
||
877 | 877 | */ |
878 | 878 | protected function addDefaultProductModelImportStagePluginsStack($container) |
879 | 879 | { |
880 | - $container[static::DEFAULT_PRODUCT_MODEL_IMPORT_STAGE_PLUGINS] = function () { |
|
880 | + $container[static::DEFAULT_PRODUCT_MODEL_IMPORT_STAGE_PLUGINS] = function() { |
|
881 | 881 | return [ |
882 | 882 | new StreamReaderStagePlugin(), |
883 | 883 | new DefaultProductModelImportValidatorStagePlugin(), |
@@ -897,7 +897,7 @@ discard block |
||
897 | 897 | */ |
898 | 898 | protected function addProductAbstractQuery($container): Container |
899 | 899 | { |
900 | - $container[static::PRODUCT_ABSTRACT_QUERY] = function () { |
|
900 | + $container[static::PRODUCT_ABSTRACT_QUERY] = function() { |
|
901 | 901 | return SpyProductAbstractQuery::create(); |
902 | 902 | }; |
903 | 903 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | public function translate($value, array $payload) |
25 | 25 | { |
26 | 26 | if (is_array($value[0][static::KEY_DATA]) && array_key_exists(static::KEY_AMOUNT, $value[0][static::KEY_DATA])) { |
27 | - $value[0][static::KEY_DATA] = (int)$value[0][static::KEY_DATA][static::KEY_AMOUNT]; |
|
27 | + $value[0][static::KEY_DATA] = (int) $value[0][static::KEY_DATA][static::KEY_AMOUNT]; |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | return $value; |
@@ -64,7 +64,7 @@ |
||
64 | 64 | foreach ($priceInfo[static::KEY_DATA] as $price) { |
65 | 65 | if ($price[static::KEY_CURRENCY] === $currency) { |
66 | 66 | $result[] = [ |
67 | - static::KEY_PRICE => (int)((float)$price[static::KEY_AMOUNT]) * 100, |
|
67 | + static::KEY_PRICE => (int) ((float) $price[static::KEY_AMOUNT]) * 100, |
|
68 | 68 | static::KEY_PRICE_TYPE => $type, |
69 | 69 | static::KEY_CURRENCY => $price[static::KEY_CURRENCY], |
70 | 70 | static::KEY_STORE => $store, |
@@ -23,7 +23,7 @@ |
||
23 | 23 | public function translate($value, array $payload) |
24 | 24 | { |
25 | 25 | $key = isset($this->options['key']) ? $this->options['key'] : static::KEY_NAME; |
26 | - return array_map(function ($value) use ($key) { |
|
26 | + return array_map(function($value) use ($key) { |
|
27 | 27 | return [ |
28 | 28 | $key => $value, |
29 | 29 | ]; |
@@ -37,7 +37,7 @@ |
||
37 | 37 | $value[static::KEY_ABSTRACT_SKU] = $payload[static::KEY_PARENT]; |
38 | 38 | $value[static::ABSTRACT_IDENTIFIER] = false; |
39 | 39 | |
40 | - return $value; |
|
40 | + return $value; |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
@@ -47,6 +47,6 @@ |
||
47 | 47 | */ |
48 | 48 | protected function createAbstractSKU(string $sku): string |
49 | 49 | { |
50 | - return $sku . '_abstract'; |
|
50 | + return $sku.'_abstract'; |
|
51 | 51 | } |
52 | 52 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | foreach ($priceInfo[static::KEY_DATA] as $price) { |
68 | 68 | foreach ($this->getStores() as $store) { |
69 | 69 | $result[] = [ |
70 | - static::KEY_PRICE => (int)((float)$price[static::KEY_AMOUNT]) * 100, |
|
70 | + static::KEY_PRICE => (int) ((float) $price[static::KEY_AMOUNT]) * 100, |
|
71 | 71 | static::KEY_PRICE_TYPE => static::DEFAULT_PRICE_TYPE, |
72 | 72 | static::KEY_CURRENCY => $price[static::KEY_CURRENCY], |
73 | 73 | static::KEY_STORE => $store, |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | foreach ($priceInfo[static::KEY_DATA] as $price) { |
88 | 88 | if ($price[static::KEY_CURRENCY] === $currency) { |
89 | 89 | $result[] = [ |
90 | - static::KEY_PRICE => (int)((float)$price[static::KEY_AMOUNT]) * 100, |
|
90 | + static::KEY_PRICE => (int) ((float) $price[static::KEY_AMOUNT]) * 100, |
|
91 | 91 | static::KEY_PRICE_TYPE => $type, |
92 | 92 | static::KEY_CURRENCY => $price[static::KEY_CURRENCY], |
93 | 93 | static::KEY_STORE => $store, |
@@ -42,7 +42,7 @@ |
||
42 | 42 | public function generate(string $name, int $idLocale, string $identifier): string |
43 | 43 | { |
44 | 44 | $abstractProductUrl = $this->utilTextService->generateSlug($name); |
45 | - $abstractProductUrl = '/' . substr($this->getLocaleNameById($idLocale), 0, 2) . '/' . $abstractProductUrl . '-' . md5($identifier); |
|
45 | + $abstractProductUrl = '/'.substr($this->getLocaleNameById($idLocale), 0, 2).'/'.$abstractProductUrl.'-'.md5($identifier); |
|
46 | 46 | $this->cleanupRedirectUrls($abstractProductUrl); |
47 | 47 | |
48 | 48 | return $abstractProductUrl; |
@@ -42,7 +42,7 @@ |
||
42 | 42 | { |
43 | 43 | return [ |
44 | 44 | 'values.*' => 'MeasureUnitToInt', |
45 | - 'values.collection.data' => function ($value) { |
|
45 | + 'values.collection.data' => function($value) { |
|
46 | 46 | if (is_array($value)) { |
47 | 47 | return reset($value); |
48 | 48 | } |
@@ -53,10 +53,10 @@ |
||
53 | 53 | ], |
54 | 54 | ], |
55 | 55 | ], |
56 | - 'fk_category_template' => function ($value, $payload) { |
|
56 | + 'fk_category_template' => function($value, $payload) { |
|
57 | 57 | return $this->config->getDefaultFkCategoryTemplate(); |
58 | 58 | }, |
59 | - 'parent_category_key' => function ($value) { |
|
59 | + 'parent_category_key' => function($value) { |
|
60 | 60 | if (empty($value)) { |
61 | 61 | return 'demoshop'; |
62 | 62 | } |