@@ -102,8 +102,8 @@ |
||
| 102 | 102 | $translator = $this->createMock(TranslatorInterface::class); |
| 103 | 103 | $translator->expects(static::any()) |
| 104 | 104 | ->method('trans') |
| 105 | - ->will(static::returnCallback(function ($message) { |
|
| 106 | - return $message.'_translated'; |
|
| 105 | + ->will(static::returnCallback(function($message) { |
|
| 106 | + return $message . '_translated'; |
|
| 107 | 107 | })); |
| 108 | 108 | } |
| 109 | 109 | |
@@ -67,11 +67,11 @@ discard block |
||
| 67 | 67 | $isManualEditGranted = $this->orderAddressSecurityProvider->isManualEditGranted($type); |
| 68 | 68 | $this->initCustomerAddressField($builder, $type, $order, $isManualEditGranted, $isEditEnabled); |
| 69 | 69 | |
| 70 | - $builder->add('phone', TextType::class, ['required' => false, StripTagsExtension::OPTION_NAME => true,]); |
|
| 70 | + $builder->add('phone', TextType::class, ['required' => false, StripTagsExtension::OPTION_NAME => true, ]); |
|
| 71 | 71 | |
| 72 | 72 | $builder->addEventListener( |
| 73 | 73 | FormEvents::SUBMIT, |
| 74 | - function (FormEvent $event) use ($isManualEditGranted) { |
|
| 74 | + function(FormEvent $event) use ($isManualEditGranted) { |
|
| 75 | 75 | if (!$isManualEditGranted) { |
| 76 | 76 | $event->setData(null); |
| 77 | 77 | } |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | { |
| 152 | 152 | array_walk_recursive( |
| 153 | 153 | $addresses, |
| 154 | - function (&$item) { |
|
| 154 | + function(&$item) { |
|
| 155 | 155 | if ($item instanceof AbstractAddress) { |
| 156 | 156 | $item = $this->addressFormatter->format($item, null, ', '); |
| 157 | 157 | } |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | |
| 175 | 175 | array_walk_recursive( |
| 176 | 176 | $addresses, |
| 177 | - function ($item, $key) use (&$data) { |
|
| 177 | + function($item, $key) use (&$data) { |
|
| 178 | 178 | if ($item instanceof AbstractAddress) { |
| 179 | 179 | $data[$key] = $this->serializer->normalize($item); |
| 180 | 180 | } |
@@ -57,10 +57,10 @@ |
||
| 57 | 57 | 'unit_disabled', |
| 58 | 58 | ProductUnitSelectType::class, |
| 59 | 59 | [ |
| 60 | - 'compact' => $options['compact'], |
|
| 61 | - 'disabled' => $disabled, |
|
| 62 | - 'mapped' => false, |
|
| 63 | - 'data' => $unitPrecision->getUnit() |
|
| 60 | + 'compact' => $options['compact'], |
|
| 61 | + 'disabled' => $disabled, |
|
| 62 | + 'mapped' => false, |
|
| 63 | + 'data' => $unitPrecision->getUnit() |
|
| 64 | 64 | ] |
| 65 | 65 | ); |
| 66 | 66 | |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | ->add('conversionRate', NumberType::class, ['required' => false]) |
| 47 | 47 | ->add('sell', CheckboxType::class, ['required' => false]); |
| 48 | 48 | |
| 49 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($options) { |
|
| 49 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($options) { |
|
| 50 | 50 | $unitPrecision = $event->getData(); |
| 51 | 51 | $form = $event->getForm(); |
| 52 | 52 | |