@@ -164,7 +164,7 @@ |
||
164 | 164 | public function getMatchers() |
165 | 165 | { |
166 | 166 | return [ |
167 | - 'containText' => function ($subject, $text) { |
|
167 | + 'containText' => function($subject, $text) { |
|
168 | 168 | return false !== strpos($subject, $text); |
169 | 169 | }, |
170 | 170 | ]; |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function process(MetadataInterface $metadata, array $options = []) |
30 | 30 | { |
31 | - $metadata->forAll(function ($property) use ($options) { |
|
31 | + $metadata->forAll(function($property) use ($options) { |
|
32 | 32 | return $this->processProperty($property, $options); |
33 | 33 | }); |
34 | 34 |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | */ |
78 | 78 | private function addModelDataListener(FormBuilderInterface $builder, $name, $group) |
79 | 79 | { |
80 | - $builder->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($builder, $name, $group) { |
|
80 | + $builder->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($builder, $name, $group) { |
|
81 | 81 | try { |
82 | 82 | $data = $this->propertyAccessor->getValue($event->getData(), $name); |
83 | 83 | } catch (\RuntimeException $exception) { |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | */ |
104 | 104 | private function addSubmittedDataListener(FormBuilderInterface $builder, $name) |
105 | 105 | { |
106 | - $builder->get($name)->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($builder, $name) { |
|
106 | + $builder->get($name)->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($builder, $name) { |
|
107 | 107 | $formName = $event->getData()['_form']; |
108 | 108 | if (empty($formName)) { |
109 | 109 | $event->setData([$name => null]); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | ]) |
31 | 31 | ->setNormalizer( |
32 | 32 | 'group', |
33 | - function () { |
|
33 | + function() { |
|
34 | 34 | return 'twitter'; |
35 | 35 | } |
36 | 36 | ) |
@@ -79,17 +79,17 @@ |
||
79 | 79 | private function addKeywordsTransformer(FormBuilderInterface $builder) |
80 | 80 | { |
81 | 81 | $builder->get('keywords')->addModelTransformer(new CallbackTransformer( |
82 | - function ($originalKeywords) { |
|
82 | + function($originalKeywords) { |
|
83 | 83 | if (!is_array($originalKeywords)) { |
84 | 84 | return ''; |
85 | 85 | } |
86 | 86 | |
87 | 87 | return join(', ', $originalKeywords); |
88 | 88 | }, |
89 | - function ($submittedKeywords) { |
|
89 | + function($submittedKeywords) { |
|
90 | 90 | $keywords = explode(',', $submittedKeywords); |
91 | 91 | |
92 | - array_walk($keywords, function ($keyword) { |
|
92 | + array_walk($keywords, function($keyword) { |
|
93 | 93 | return trim($keyword); |
94 | 94 | }); |
95 | 95 |
@@ -164,7 +164,7 @@ |
||
164 | 164 | public function getMatchers() |
165 | 165 | { |
166 | 166 | return [ |
167 | - 'containText' => function ($subject, $text) { |
|
167 | + 'containText' => function($subject, $text) { |
|
168 | 168 | return false !== strpos($subject, $text); |
169 | 169 | }, |
170 | 170 | ]; |
@@ -41,7 +41,7 @@ |
||
41 | 41 | */ |
42 | 42 | public function configureOptions(OptionsResolver $resolver) |
43 | 43 | { |
44 | - $choices = function (Options $options) { |
|
44 | + $choices = function(Options $options) { |
|
45 | 45 | if (null === $options['country']) { |
46 | 46 | $choices = $this->provinceRepository->findAll(); |
47 | 47 | } else { |
@@ -47,7 +47,7 @@ |
||
47 | 47 | { |
48 | 48 | $event->getData()->willReturn('badObject'); |
49 | 49 | $this->shouldThrow(new UnexpectedTypeException('badObject', ArchetypeInterface::class)) |
50 | - ->during('preSetData', [$event]) |
|
50 | + ->during('preSetData', [$event]) |
|
51 | 51 | ; |
52 | 52 | } |
53 | 53 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | 'label' => false, |
49 | 49 | 'button_add_label' => 'sylius.form.menu.add_menu_node', |
50 | 50 | 'cascade_validation' => true, |
51 | - ]) |
|
51 | + ]) |
|
52 | 52 | ->add('uri', null, [ |
53 | 53 | 'required' => false, |
54 | 54 | 'label' => 'sylius.form.menu.uri', |