Completed
Push — master ( e6e3d2...83da08 )
by Kamil
21:58 queued 03:02
created
src/Sylius/Bundle/ProductBundle/Form/Type/ProductOptionValueChoiceType.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,9 @@
 block discarded – undo
13 13
 
14 14
 use Sylius\Component\Product\Model\ProductOptionInterface;
15 15
 use Symfony\Component\Form\AbstractType;
16
-use Symfony\Component\Form\Extension\Core\ChoiceList\ObjectChoiceList;
17 16
 use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
18 17
 use Symfony\Component\OptionsResolver\Options;
19 18
 use Symfony\Component\OptionsResolver\OptionsResolver;
20
-use Symfony\Component\PropertyAccess\PropertyAccess;
21 19
 
22 20
 /**
23 21
  * @author Paweł Jędrzejewski <[email protected]>
Please login to merge, or discard this patch.
src/Sylius/Bundle/ShippingBundle/Form/Type/ShippingMethodChoiceType.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
                     }
86 86
 
87 87
                     return $this->repository->findAll();
88
-                 },
88
+                    },
89 89
                 'choice_value' => 'code',
90 90
                 'choice_label' => 'name',
91 91
                 'choice_translation_domain' => false,
Please login to merge, or discard this patch.
src/Sylius/Bundle/PaymentBundle/Form/Type/CreditCardType.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -31,28 +31,28 @@
 block discarded – undo
31 31
                 'label' => 'sylius.form.credit_card.type',
32 32
                 'expanded' => true,
33 33
                 'choices_as_values' => true,
34
-              ])
35
-              ->add('cardholderName', TextType::class, [
34
+                ])
35
+                ->add('cardholderName', TextType::class, [
36 36
                 'label' => 'sylius.form.credit_card.cardholder_name',
37
-              ])
38
-              ->add('number', TextType::class, [
39
-                  'label' => 'sylius.form.credit_card.number',
40
-              ])
41
-              ->add('securityCode', TextType::class, [
42
-                  'label' => 'sylius.form.credit_card.security_code',
43
-              ])
44
-              ->add('expiryMonth', ChoiceType::class, [
45
-                  'choices' => $this->getMonthChoices(),
46
-                  'choice_translation_domain' => false,
47
-                  'label' => 'sylius.form.credit_card.expiry_month',
48
-                  'choices_as_values' => true,
49
-              ])
50
-              ->add('expiryYear', ChoiceType::class, [
51
-                  'choices' => $this->getViableYears(),
52
-                  'choice_translation_domain' => false,
53
-                  'label' => 'sylius.form.credit_card.expiry_year',
54
-                  'choices_as_values' => true,
55
-              ])
37
+                ])
38
+                ->add('number', TextType::class, [
39
+                    'label' => 'sylius.form.credit_card.number',
40
+                ])
41
+                ->add('securityCode', TextType::class, [
42
+                    'label' => 'sylius.form.credit_card.security_code',
43
+                ])
44
+                ->add('expiryMonth', ChoiceType::class, [
45
+                    'choices' => $this->getMonthChoices(),
46
+                    'choice_translation_domain' => false,
47
+                    'label' => 'sylius.form.credit_card.expiry_month',
48
+                    'choices_as_values' => true,
49
+                ])
50
+                ->add('expiryYear', ChoiceType::class, [
51
+                    'choices' => $this->getViableYears(),
52
+                    'choice_translation_domain' => false,
53
+                    'label' => 'sylius.form.credit_card.expiry_year',
54
+                    'choices_as_values' => true,
55
+                ])
56 56
         ;
57 57
     }
58 58
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/ShippingCategoryContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     public function theStoreHasAndShippingCategory($firstShippingCategoryName, $secondShippingCategoryName = null)
70 70
     {
71 71
         $this->createShippingCategory($firstShippingCategoryName);
72
-        (null === $secondShippingCategoryName)? : $this->createShippingCategory($secondShippingCategoryName);
72
+        (null === $secondShippingCategoryName) ?: $this->createShippingCategory($secondShippingCategoryName);
73 73
     }
74 74
 
75 75
     /**
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     private function createShippingCategory($shippingCategoryName)
79 79
     {
80 80
         /** @var ShippingCategoryInterface $shippingCategory */
81
-        $shippingCategory =  $this->shippingCategoryFactory->createNew();
81
+        $shippingCategory = $this->shippingCategoryFactory->createNew();
82 82
         $shippingCategory->setName($shippingCategoryName);
83 83
         $shippingCategory->setCode(StringInflector::nameToCode($shippingCategoryName));
84 84
 
Please login to merge, or discard this patch.