Completed
Push — symfony3-fqcn-promotion ( 358a27...51f651 )
by Kamil
34:17 queued 17:43
created
src/Sylius/Behat/Context/Setup/ProductTaxonContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
         $productTaxon->setProduct($product);
73 73
         $productTaxon->setTaxon($taxon);
74 74
 
75
-        if(null !== $position) {
75
+        if (null !== $position) {
76 76
             $productTaxon->setPosition($position);
77 77
         }
78 78
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Taxon/ShowPage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $productsList = $this->getDocument()->find('css', '#products');
62 62
         
63
-        $products = $productsList->findAll('css','.column > .card');
63
+        $products = $productsList->findAll('css', '.column > .card');
64 64
         
65 65
         return count($products);
66 66
     }
@@ -103,10 +103,10 @@  discard block
 block discarded – undo
103 103
     public function hasProductsInOrder(array $productNames)
104 104
     {
105 105
         $productsList = $this->getDocument()->find('css', '#products');
106
-        $products = $productsList->findAll('css','.column  .content > .sylius-product-name');
106
+        $products = $productsList->findAll('css', '.column  .content > .sylius-product-name');
107 107
 
108 108
         foreach ($productNames as $key => $value) {
109
-            if($products[$key]->getText() !== $value) {
109
+            if ($products[$key]->getText() !== $value) {
110 110
                 return false;
111 111
             }
112 112
         }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/IndexPerTaxonPage.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         $productsOnPage = $this->getColumnFields('name');
32 32
 
33 33
         foreach ($productsOnPage as $key => $product) {
34
-            if($productNames[$key] !== $product) {
34
+            if ($productNames[$key] !== $product) {
35 35
                 return false;
36 36
             }
37 37
         }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     {
56 56
         $this->getElement('save_configuration_button')->press();
57 57
 
58
-        $this->getDocument()->waitFor(5, function (){
58
+        $this->getDocument()->waitFor(5, function () {
59 59
             return false === $this->getElement('save_configuration_button')->hasClass('loading');
60 60
         } );
61 61
     }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     {
56 56
         $this->getElement('save_configuration_button')->press();
57 57
 
58
-        $this->getDocument()->waitFor(5, function (){
58
+        $this->getDocument()->waitFor(5, function () {
59 59
             return false === $this->getElement('save_configuration_button')->hasClass('loading');
60 60
         } );
61 61
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/Product.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
     public function filterProductTaxonsByTaxon(TaxonInterface $taxon)
159 159
     {
160 160
         return $this->productTaxons->filter(function ($productTaxon) use ($taxon) {
161
-             return $taxon === $productTaxon->getTaxon();
161
+                return $taxon === $productTaxon->getTaxon();
162 162
         });
163 163
     }
164 164
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Sylius\Component\Channel\Model\ChannelsAwareInterface;
15 15
 use Sylius\Component\Product\Model\ProductInterface as BaseProductInterface;
16 16
 use Sylius\Component\Review\Model\ReviewableInterface;
17
-use Sylius\Component\Shipping\Model\ShippingCategoryInterface;
18 17
 
19 18
 /**
20 19
  * @author Paweł Jędrzejewski <[email protected]>
Please login to merge, or discard this patch.
Sylius/Component/Core/Test/Services/DefaultUnitedStatesChannelFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -174,6 +174,8 @@  discard block
 block discarded – undo
174 174
     }
175 175
 
176 176
     /**
177
+     * @param string $code
178
+     * @param string $name
177 179
      * @return ChannelInterface
178 180
      */
179 181
     private function createChannel($code, $name)
@@ -197,6 +199,7 @@  discard block
 block discarded – undo
197 199
     }
198 200
 
199 201
     /**
202
+     * @param string $currencyCode
200 203
      * @return CurrencyInterface
201 204
      */
202 205
     private function provideCurrency($currencyCode = null)
Please login to merge, or discard this patch.
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/Bundle/OrderBundle/Controller/OrderItemController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
 use Sylius\Component\Order\Modifier\OrderModifierInterface;
24 24
 use Symfony\Component\EventDispatcher\EventDispatcherInterface;
25 25
 use Symfony\Component\Form\FormFactoryInterface;
26
-use Symfony\Component\HttpFoundation\JsonResponse;
27 26
 use Symfony\Component\HttpFoundation\RedirectResponse;
28 27
 use Symfony\Component\HttpFoundation\Request;
29 28
 use Symfony\Component\HttpFoundation\Response;
Please login to merge, or discard this patch.