Completed
Push — master ( 4c7b9c...e919dc )
by Kamil
21:11
created
src/Sylius/Bundle/CoreBundle/Form/Type/OrderItemType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
         parent::buildForm($builder, $options);
34 34
 
35 35
         $builder
36
-            ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) use ($options) {
36
+            ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) use ($options) {
37 37
                 $data = $event->getData();
38 38
                 if (isset($data['variant'])) {
39 39
                     $event->getForm()->add('variant', 'entity_hidden', array(
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Type/CartType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
                 'by_reference' => false,
52 52
                 'label'        => 'sylius.form.cart.coupon',
53 53
             ))
54
-            ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
54
+            ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
55 55
                 $data = $event->getData();
56 56
 
57 57
                 if (!$data->getPromotionCoupons()->isEmpty()) {
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Type/Checkout/AddressingStepType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function buildForm(FormBuilderInterface $builder, array $options)
33 33
     {
34 34
         $builder
35
-            ->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) {
35
+            ->addEventListener(FormEvents::PRE_SUBMIT, function(FormEvent $event) {
36 36
                 $data = $event->getData();
37 37
 
38 38
                 if (!array_key_exists('differentBillingAddress', $data) || false === $data['differentBillingAddress']) {
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
                     $event->setData($data);
42 42
                 }
43 43
             })
44
-            ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) use ($options) {
44
+            ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) use ($options) {
45 45
                 /* @var CustomerInterface $customer */
46 46
                 $customer = $options['customer'];
47 47
                 // if customer does not have user, it is not registered, so we do not preset data
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Behat/CoreContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -334,7 +334,7 @@
 block discarded – undo
334 334
                 $min = (int) trim(str_replace('+', '', $data['range']));
335 335
                 $max = null;
336 336
             } else {
337
-                list($min, $max) = array_map(function ($value) { return (int) trim($value); }, explode('-', $data['range']));
337
+                list($min, $max) = array_map(function($value) { return (int) trim($value); }, explode('-', $data['range']));
338 338
             }
339 339
 
340 340
             $configuration[] = array(
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Checkout/CheckoutProcessScenario.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
             ->setDisplayRoute('sylius_checkout_display')
52 52
             ->setForwardRoute('sylius_checkout_forward')
53 53
             ->setRedirect('sylius_homepage')
54
-            ->validate(function () {
54
+            ->validate(function() {
55 55
                 return !$this->getCurrentCart()->isEmpty();
56 56
             })
57 57
         ;
Please login to merge, or discard this patch.
src/Sylius/Bundle/ShippingBundle/DependencyInjection/Configuration.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -202,8 +202,8 @@
 block discarded – undo
202 202
                                         ->arrayNode('form')
203 203
                                             ->addDefaultsIfNotSet()
204 204
                                             ->children()
205
-                                                 ->scalarNode('default')->defaultValue(ShippingCategoryType::class)->cannotBeEmpty()->end()
206
-                                                 ->scalarNode('choice')->defaultValue(ResourceChoiceType::class)->cannotBeEmpty()->end()
205
+                                                    ->scalarNode('default')->defaultValue(ShippingCategoryType::class)->cannotBeEmpty()->end()
206
+                                                    ->scalarNode('choice')->defaultValue(ResourceChoiceType::class)->cannotBeEmpty()->end()
207 207
                                             ->end()
208 208
                                         ->end()
209 209
                                     ->end()
Please login to merge, or discard this patch.
src/Sylius/Bundle/TaxonomyBundle/Form/Type/TaxonChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     public function configureOptions(OptionsResolver $resolver)
65 65
     {
66 66
         $repository = $this->taxonRepository;
67
-        $choiceList = function (Options $options) use ($repository) {
67
+        $choiceList = function(Options $options) use ($repository) {
68 68
             $taxons = $repository->getNonRootTaxons();
69 69
 
70 70
             if (null !== $options['taxonomy']) {
Please login to merge, or discard this patch.
src/Sylius/Bundle/UserBundle/Form/Type/UserType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         $resolver
45 45
             ->setDefaults(array(
46 46
                 'data_class' => $this->dataClass,
47
-                'validation_groups' => function (FormInterface $form) {
47
+                'validation_groups' => function(FormInterface $form) {
48 48
                     $data = $form->getData();
49 49
                     if ($data && !$data->getId()) {
50 50
                         $this->validationGroups[] = 'sylius_user_create';
Please login to merge, or discard this patch.
src/Sylius/Bundle/LocaleBundle/Form/Type/LocaleChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     public function configureOptions(OptionsResolver $resolver)
56 56
     {
57
-        $choiceList = function (Options $options) {
57
+        $choiceList = function(Options $options) {
58 58
             if (null === $options['enabled']) {
59 59
                 $choices = $this->localeRepository->findAll();
60 60
             } else {
Please login to merge, or discard this patch.