Completed
Push — pull-request/8600 ( 367a7c )
by Kamil
56:28 queued 34:06
created
src/Sylius/Behat/Context/Setup/OrderContext.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Behat\Context\Setup;
15 15
 
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
         $this->addVariantWithPriceToOrder($order, $product->getVariants()->first(), $price);
569 569
 
570 570
         $this->orderRepository->add($order);
571
-        $this->sharedStorage->set('order',  $order);
571
+        $this->sharedStorage->set('order', $order);
572 572
     }
573 573
 
574 574
     /**
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
             $customer = $this->customerFactory->createNew();
785 785
             $customer->setEmail(sprintf('john%[email protected]', uniqid()));
786 786
             $customer->setFirstname('John');
787
-            $customer->setLastname('Doe'.$i);
787
+            $customer->setLastname('Doe' . $i);
788 788
 
789 789
             $customers[] = $customer;
790 790
 
@@ -876,7 +876,7 @@  discard block
 block discarded – undo
876 876
         $total = $this->getPriceFromString($total);
877 877
 
878 878
         for ($i = 0; $i < $numberOfOrders; $i++) {
879
-            $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#'.uniqid());
879
+            $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#' . uniqid());
880 880
             $order->setState(OrderInterface::STATE_NEW); // Temporary, we should use checkout to place these orders.
881 881
             $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE);
882 882
 
@@ -915,7 +915,7 @@  discard block
 block discarded – undo
915 915
         $total = $this->getPriceFromString($total);
916 916
 
917 917
         for ($i = 0; $i < $numberOfOrders; $i++) {
918
-            $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#'.uniqid(), $product->getChannels()->first());
918
+            $order = $this->createOrder($customers[rand(0, $numberOfCustomers - 1)], '#' . uniqid(), $product->getChannels()->first());
919 919
             $order->setState(OrderInterface::STATE_NEW);
920 920
             $this->applyPaymentTransitionOnOrder($order, PaymentTransitions::TRANSITION_COMPLETE);
921 921
 
Please login to merge, or discard this patch.
Sylius/Bundle/CoreBundle/spec/EventListener/ImagesRemoveListenerSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace spec\Sylius\Bundle\CoreBundle\EventListener;
6 6
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/EventListener/ImagesRemoveListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Sylius\Bundle\CoreBundle\EventListener;
6 6
 
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/Customer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Core\Model;
15 15
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * {@inheritdoc}
56 56
      */
57
-    public function setEmail(?string $email): void
57
+    public function setEmail(?string $email) : void
58 58
     {
59 59
         parent::setEmail($email);
60 60
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     /**
83 83
      * {@inheritdoc}
84 84
      */
85
-    public function setDefaultAddress(?AddressInterface $defaultAddress): void
85
+    public function setDefaultAddress(?AddressInterface $defaultAddress) : void
86 86
     {
87 87
         $this->defaultAddress = $defaultAddress;
88 88
 
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     /**
139 139
      * {@inheritdoc}
140 140
      */
141
-    public function setUser(?BaseUserInterface $user): void
141
+    public function setUser(?BaseUserInterface $user) : void
142 142
     {
143 143
         if ($this->user !== $user) {
144 144
             $this->user = $user;
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     /**
158 158
      * @param ShopUserInterface|null $user
159 159
      */
160
-    protected function assignCustomer(?ShopUserInterface $user): void
160
+    protected function assignCustomer(?ShopUserInterface $user) : void
161 161
     {
162 162
         if (null !== $user) {
163 163
             $user->setCustomer($this);
Please login to merge, or discard this patch.