Completed
Push — symfony3-optionsresolver ( 415f0a...368e3f )
by Kamil
17:18
created
src/Sylius/Component/Core/Test/Services/EmailChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
         $messages = [];
138 138
 
139 139
         /** @var SplFileInfo $file */
140
-        foreach($finder as $file) {
140
+        foreach ($finder as $file) {
141 141
             $messages[] = unserialize($file->getContents());
142 142
         }
143 143
 
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ProductVariant.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,10 +92,10 @@
 block discarded – undo
92 92
             $string .= '(';
93 93
 
94 94
             foreach ($this->getOptionValues() as $option) {
95
-                $string .= $option->getOption()->getName().': '.$option->getValue().', ';
95
+                $string .= $option->getOption()->getName() . ': ' . $option->getValue() . ', ';
96 96
             }
97 97
 
98
-            $string = substr($string, 0, -2).')';
98
+            $string = substr($string, 0, -2) . ')';
99 99
         }
100 100
 
101 101
         return $string;
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/Component/Order/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/Order/Remover/ExpiredCartsRemover.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
     public function remove()
42 42
     {
43
-        $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-'.$this->expirationPeriod));
43
+        $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-' . $this->expirationPeriod));
44 44
         foreach ($expiredCarts as $expiredCart) {
45 45
             $this->orderRepository->remove($expiredCart);
46 46
         }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/TaxonomyContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
         $filesPath = $this->getParameter('files_path');
121 121
 
122 122
         $taxonImage = $this->taxonImageFactory->createNew();
123
-        $taxonImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath)));
123
+        $taxonImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath)));
124 124
         $taxonImage->setCode($imageCode);
125 125
         $this->imageUploader->upload($taxonImage);
126 126
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/PaymentContext.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
      */
88 88
     public function storeAllowsPaying($paymentMethodName)
89 89
     {
90
-        $this->createPaymentMethodFromNameAndCode($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method');
90
+        $this->createPaymentMethodFromNameAndCode($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method');
91 91
     }
92 92
 
93 93
     /**
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      */
140 140
     public function theStoreHasPaymentMethodNotAssignedToAnyChannel($paymentMethodName)
141 141
     {
142
-        $this->createPaymentMethodFromNameAndCode($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method', false);
142
+        $this->createPaymentMethodFromNameAndCode($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method', false);
143 143
     }
144 144
 
145 145
     /**
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 use Sylius\Component\Addressing\Model\ZoneInterface;
18 18
 use Sylius\Component\Addressing\Repository\ZoneRepositoryInterface;
19 19
 use Sylius\Component\Core\Formatter\StringInflector;
20
-use Sylius\Component\Core\Model\ChannelInterface;
21 20
 use Sylius\Component\Core\Model\ShippingMethodInterface;
22 21
 use Sylius\Component\Resource\Factory\FactoryInterface;
23 22
 use Sylius\Component\Shipping\Calculator\DefaultCalculators;
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/Admin/ManagingProductOptionsContext.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@
 block discarded – undo
65 65
 
66 66
     function is_configures_options(
67 67
         OptionsResolver $resolver
68
-    )
69
-    {
68
+    ) {
70 69
         $resolver->setDefaults([
71 70
             'format' => 'Y:m:d H:i:s'
72 71
         ])->shouldBeCalled();
Please login to merge, or discard this patch.