Completed
Push — travis-trusty ( 932854...4a692a )
by Kamil
44:06 queued 23:48
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/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/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/Behat/Context/Setup/PaymentContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public function storeAllowsPaying($paymentMethodName, $position = null)
90 90
     {
91
-        $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Offline', 'Payment method', true, $position);
91
+        $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Offline', 'Payment method', true, $position);
92 92
     }
93 93
 
94 94
     /**
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      */
172 172
     public function theStoreHasPaymentMethodNotAssignedToAnyChannel($paymentMethodName)
173 173
     {
174
-        $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method', 'Offline', false);
174
+        $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method', 'Offline', false);
175 175
     }
176 176
 
177 177
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingPaymentMethodsContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -299,7 +299,7 @@
 block discarded – undo
299 299
     public function iShouldBeNotifiedThatIHaveToSpecifyPaypal($element)
300 300
     {
301 301
         Assert::same(
302
-            $this->createPage->getValidationMessage('paypal_'.$element),
302
+            $this->createPage->getValidationMessage('paypal_' . $element),
303 303
             sprintf('Please enter paypal %s.', $element)
304 304
         );
305 305
     }
Please login to merge, or discard this patch.
tests/Controller/TaxonApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -491,7 +491,7 @@
 block discarded – undo
491 491
         }
492 492
 EOT;
493 493
 
494
-        $this->client->request('PUT', $this->getTaxonProductsPositionsChangeUrl($taxon) , [], [], static::$authorizedHeaderWithContentType, $data);
494
+        $this->client->request('PUT', $this->getTaxonProductsPositionsChangeUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data);
495 495
 
496 496
         $response = $this->client->getResponse();
497 497
         $this->assertResponse($response, 'taxon/update_validation_fail_response', Response::HTTP_BAD_REQUEST);
Please login to merge, or discard this patch.