Completed
Push — product/missing-methods ( 0cfbf7 )
by Kamil
25:41
created
src/Sylius/Bundle/PaymentBundle/Form/Type/CreditCardType.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -30,24 +30,24 @@
 block discarded – undo
30 30
             ->add('type', 'choice', [
31 31
                 'label' => 'sylius.form.credit_card.type',
32 32
                 'expanded' => true,
33
-              ])
34
-              ->add('cardholderName', 'text', [
33
+                ])
34
+                ->add('cardholderName', 'text', [
35 35
                 'label' => 'sylius.form.credit_card.cardholder_name',
36
-              ])
37
-              ->add('number', 'text', [
38
-                  'label' => 'sylius.form.credit_card.number',
39
-              ])
40
-              ->add('securityCode', 'text', [
41
-                  'label' => 'sylius.form.credit_card.security_code',
42
-              ])
43
-              ->add('expiryMonth', 'choice', [
44
-                  'label' => 'sylius.form.credit_card.expiry_month',
45
-                  'choices' => $this->getMonthChoices(),
46
-              ])
47
-              ->add('expiryYear', 'choice', [
48
-                  'label' => 'sylius.form.credit_card.expiry_year',
49
-                  'choices' => $this->getViableYears(),
50
-              ])
36
+                ])
37
+                ->add('number', 'text', [
38
+                    'label' => 'sylius.form.credit_card.number',
39
+                ])
40
+                ->add('securityCode', 'text', [
41
+                    'label' => 'sylius.form.credit_card.security_code',
42
+                ])
43
+                ->add('expiryMonth', 'choice', [
44
+                    'label' => 'sylius.form.credit_card.expiry_month',
45
+                    'choices' => $this->getMonthChoices(),
46
+                ])
47
+                ->add('expiryYear', 'choice', [
48
+                    'label' => 'sylius.form.credit_card.expiry_year',
49
+                    'choices' => $this->getViableYears(),
50
+                ])
51 51
         ;
52 52
     }
53 53
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Tests/Fixture/CurrencyFixtureTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function currencies_can_be_set()
38 38
     {
39
-       $this->assertConfigurationIsValid([['currencies' => ['EUR' => true, 'USD' => false, 'PLN' => true]]], 'currencies');
39
+        $this->assertConfigurationIsValid([['currencies' => ['EUR' => true, 'USD' => false, 'PLN' => true]]], 'currencies');
40 40
     }
41 41
 
42 42
     /**
Please login to merge, or discard this patch.
src/Sylius/Component/User/Model/UserOAuthInterface.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@
 block discarded – undo
52 52
     /**
53 53
      * @return string
54 54
      */
55
-   public function getRefreshToken();
55
+    public function getRefreshToken();
56 56
 
57
-   /**
58
-    * @param string $refreshToken
59
-    */
60
-   public function setRefreshToken($refreshToken);
57
+    /**
58
+     * @param string $refreshToken
59
+     */
60
+    public function setRefreshToken($refreshToken);
61 61
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Order/spec/Updater/UnpaidOrdersStateUpdaterSpec.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@
 block discarded – undo
52 52
         StateMachineInterface $secondOrderStateMachine
53 53
     ) {
54 54
         $orderRepository->findOrdersUnpaidSince(Argument::type(\DateTime::class))->willReturn([
55
-           $firstOrder,
56
-           $secondOrder
55
+            $firstOrder,
56
+            $secondOrder
57 57
         ]);
58 58
 
59 59
         $stateMachineFactory->get($firstOrder, 'sylius_order')->willReturn($firstOrderStateMachine);
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Shop/ProductContext.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -234,7 +234,7 @@
 block discarded – undo
234 234
      */
235 235
     public function iShouldBeNotifiedThatThisProductDoesNotHaveSufficientStock(ProductInterface $product)
236 236
     {
237
-       $this->showPage->waitForValidationErrors(3);
237
+        $this->showPage->waitForValidationErrors(3);
238 238
 
239 239
         Assert::true(
240 240
             $this->showPage->hasProductOutOfStockValidationMessage($product),
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/CheckoutContext.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1261,7 +1261,7 @@
 block discarded – undo
1261 1261
     {
1262 1262
         Assert::true(
1263 1263
             $this->selectPaymentPage->isNextStepButtonUnavailable(),
1264
-           'The "next step" button should be disabled.'
1264
+            'The "next step" button should be disabled.'
1265 1265
         );
1266 1266
     }
1267 1267
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Checkout/SelectPaymentPage.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -100,10 +100,10 @@
 block discarded – undo
100 100
     /**
101 101
      * {@inheritdoc}
102 102
      */
103
-     public function isNextStepButtonUnavailable()
104
-     {
105
-         return $this->getElement('next_step')->hasClass('disabled');
106
-     }
103
+        public function isNextStepButtonUnavailable()
104
+        {
105
+            return $this->getElement('next_step')->hasClass('disabled');
106
+        }
107 107
 
108 108
     /**
109 109
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Doctrine/ORM/OrderRepository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
      */
157 157
     public function countByCustomer(CustomerInterface $customer)
158 158
     {
159
-       return (int) $this->createByCustomerQueryBuilder($customer)
159
+        return (int) $this->createByCustomerQueryBuilder($customer)
160 160
             ->select('count(o.id)')
161 161
             ->getQuery()
162 162
             ->getSingleScalarResult()
Please login to merge, or discard this patch.
src/Sylius/Bundle/OrderBundle/Twig/CartExtension.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     public function getFunctions()
39 39
     {
40 40
         return [
41
-             new \Twig_SimpleFunction('sylius_cart_get', [$this, 'getCurrentCart']),
41
+                new \Twig_SimpleFunction('sylius_cart_get', [$this, 'getCurrentCart']),
42 42
         ];
43 43
     }
44 44
 
Please login to merge, or discard this patch.