Completed
Push — master ( a7ce67...91da13 )
by Kamil
21:30
created
src/Sylius/Bundle/ResourceBundle/Controller/RequestConfiguration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      */
164 164
     public function getRouteName($name)
165 165
     {
166
-        $sectionPrefix = $this->getSection() ? $this->getSection().'_' : '';
166
+        $sectionPrefix = $this->getSection() ? $this->getSection() . '_' : '';
167 167
 
168 168
         return sprintf('%s_%s%s_%s', $this->metadata->getApplicationName(), $sectionPrefix, $this->metadata->getName(), $name);
169 169
     }
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
             return '';
206 206
         }
207 207
 
208
-        return '#'.$redirect['hash'];
208
+        return '#' . $redirect['hash'];
209 209
     }
210 210
 
211 211
     /**
Please login to merge, or discard this patch.
src/Sylius/Bundle/OrderBundle/Remover/ExpiredCartsRemover.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
 
64 64
     public function remove()
65 65
     {
66
-        $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-'.$this->expirationPeriod));
66
+        $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-' . $this->expirationPeriod));
67 67
 
68 68
         $this->eventDispatcher->dispatch(SyliusExpiredCartsEvents::PRE_REMOVE, new GenericEvent($expiredCarts));
69 69
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Checkout/CompletePage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -305,7 +305,7 @@
 block discarded – undo
305 305
             do {
306 306
                 parent::tryToOpen($urlParameters);
307 307
                 sleep(3);
308
-            } while(!$this->isOpen() && microtime(true) < $end);
308
+            } while (!$this->isOpen() && microtime(true) < $end);
309 309
 
310 310
             return;
311 311
         }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ShopBundle/DependencyInjection/SyliusShopExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     public function load(array $config, ContainerBuilder $container)
34 34
     {
35 35
         $config = $this->processConfiguration($this->getConfiguration([], $container), $config);
36
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
36
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
37 37
 
38 38
         $loader->load('services.xml');
39 39
         $loader->load(sprintf('services/integrations/locale/%s.xml', $config['locale_switcher']));
Please login to merge, or discard this patch.
tests/Controller/CheckoutPaymentApiTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $this->addItemToCart($cartId);
58 58
         $this->addressOrder($cartId);
59 59
 
60
-        $this->client->request('PATCH',  $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType);
60
+        $this->client->request('PATCH', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType);
61 61
 
62 62
         $response = $this->client->getResponse();
63 63
         $this->assertResponse($response, 'checkout/payment_invalid_order_state', Response::HTTP_INTERNAL_SERVER_ERROR);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         }
88 88
 EOT;
89 89
 
90
-        $this->client->request('PUT',  $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
90
+        $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
91 91
 
92 92
         $response = $this->client->getResponse();
93 93
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/MailerBundle/Sender/Adapter/SwiftMailerAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 
59 59
         $message->setBody($renderedEmail->getBody(), 'text/html');
60 60
 
61
-        foreach($attachments as $attachment) {
61
+        foreach ($attachments as $attachment) {
62 62
             $file = \Swift_Attachment::fromPath($attachment);
63 63
 
64 64
             $message->attach($file);
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/ProductContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -651,7 +651,7 @@
 block discarded – undo
651 651
 
652 652
         /** @var ImageInterface $productImage */
653 653
         $productImage = $this->productImageFactory->createNew();
654
-        $productImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath)));
654
+        $productImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath)));
655 655
         $productImage->setType($imageType);
656 656
         $this->imageUploader->upload($productImage);
657 657
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/UiBundle/Twig/PercentageExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,6 @@
 block discarded – undo
35 35
     {
36 36
         $percentage = $number * 100;
37 37
 
38
-        return $percentage.' %';
38
+        return $percentage . ' %';
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/PayumBundle/Form/Type/PaypalGatewayConfigurationType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
                     ])
60 60
                 ],
61 61
             ])
62
-            ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) {
62
+            ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) {
63 63
                 $data = $event->getData();
64 64
 
65 65
                 $data['payum.http_client'] = '@sylius.payum.http_client';
Please login to merge, or discard this patch.