Completed
Push — locale-in-url ( 6d9eda )
by Kamil
23:08
created
src/Sylius/Component/Core/Updater/UnpaidOrdersStateUpdater.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
     public function cancel()
55 55
     {
56
-        $expiredUnpaidOrders = $this->orderRepository->findOrdersUnpaidSince(new \DateTime('-'.$this->expirationPeriod));
56
+        $expiredUnpaidOrders = $this->orderRepository->findOrdersUnpaidSince(new \DateTime('-' . $this->expirationPeriod));
57 57
         foreach ($expiredUnpaidOrders as $expiredUnpaidOrder) {
58 58
             $this->cancelOrder($expiredUnpaidOrder);
59 59
         }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/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/Admin/ManagingCustomersContext.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -660,7 +660,7 @@
 block discarded – undo
660 660
         Assert::true(
661 661
             $this->createPage->isUserFormHidden(),
662 662
             'There should not be password field, but it is.'
663
-         );
663
+            );
664 664
     }
665 665
 
666 666
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Account/Order/ShowPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
         return
198 198
             (stripos($elementText, $customerName) !== false) &&
199 199
             (stripos($elementText, $street) !== false) &&
200
-            (stripos($elementText, $city.', '.$postcode) !== false) &&
200
+            (stripos($elementText, $city . ', ' . $postcode) !== false) &&
201 201
             (stripos($elementText, $countryName) !== false)
202 202
         ;
203 203
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Checkout/SelectPaymentPage.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -100,25 +100,25 @@
 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}
110 110
      */
111
-     public function getPaymentMethods()
112
-     {
113
-         $inputs = $this->getSession()->getPage()->findAll('css', '#sylius-payment-methods .item .content label');
111
+        public function getPaymentMethods()
112
+        {
113
+            $inputs = $this->getSession()->getPage()->findAll('css', '#sylius-payment-methods .item .content label');
114 114
 
115
-         $paymentMethods = [];
116
-         foreach ($inputs as $input) {
117
-             $paymentMethods[] = trim($input->getText());
118
-         }
115
+            $paymentMethods = [];
116
+            foreach ($inputs as $input) {
117
+                $paymentMethods[] = trim($input->getText());
118
+            }
119 119
 
120
-         return $paymentMethods;
121
-     }
120
+            return $paymentMethods;
121
+        }
122 122
 
123 123
     /**
124 124
      * {@inheritdoc}
Please login to merge, or discard this patch.
src/Sylius/Bundle/TaxonomyBundle/test/app/AppKernel.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
      */
45 45
     public function registerContainerConfiguration(LoaderInterface $loader)
46 46
     {
47
-        $loader->load(__DIR__.'/config/config.yml');
47
+        $loader->load(__DIR__ . '/config/config.yml');
48 48
     }
49 49
 
50 50
     /**
Please login to merge, or discard this patch.
src/Sylius/Bundle/MoneyBundle/test/app/AppKernel.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
      */
45 45
     public function registerContainerConfiguration(LoaderInterface $loader)
46 46
     {
47
-        $loader->load(__DIR__.'/config/config.yml');
47
+        $loader->load(__DIR__ . '/config/config.yml');
48 48
     }
49 49
 
50 50
     /**
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Extension/CartTypeExtension.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,8 @@
 block discarded – undo
47 47
     {
48 48
         $resolver->setNormalizer('validation_groups', function (Options $options, array $validationGroups) {
49 49
             return function (FormInterface $form) use ($validationGroups) {
50
-                if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent
50
+                if ((bool) $form->get('promotionCoupon')->getNormData()) {
51
+// Validate the coupon if it was sent
51 52
                     $validationGroups[] = 'sylius_promotion_coupon';
52 53
                 }
53 54
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Installer/Checker/CommandDirectoryChecker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
      */
141 141
     private function createUnexistingDirectoryMessage()
142 142
     {
143
-        return '<error>Cannot run command due to unexisting directory (tried to create it automatically, failed).</error>'.PHP_EOL;
143
+        return '<error>Cannot run command due to unexisting directory (tried to create it automatically, failed).</error>' . PHP_EOL;
144 144
     }
145 145
 
146 146
     /**
@@ -148,6 +148,6 @@  discard block
 block discarded – undo
148 148
      */
149 149
     private function createBadPermissionsMessage()
150 150
     {
151
-        return '<error>Cannot run command due to bad directory permissions (tried to change permissions to 0755).</error>'.PHP_EOL;
151
+        return '<error>Cannot run command due to bad directory permissions (tried to change permissions to 0755).</error>' . PHP_EOL;
152 152
     }
153 153
 }
Please login to merge, or discard this patch.