Completed
Push — pagerfanta-fix ( 2d594b...187c46 )
by Kamil
35:56 queued 17:55
created
src/Sylius/Behat/Context/Ui/Admin/ManagingOrdersContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
         $itemsCount = $this->showPage->countItems();
243 243
 
244 244
         Assert::same(
245
-            (int)$amount,
245
+            (int) $amount,
246 246
             $itemsCount,
247 247
             sprintf('There should be %d items, but get %d.', $amount, $itemsCount)
248 248
         );
@@ -721,7 +721,7 @@  discard block
 block discarded – undo
721 721
     {
722 722
         $actualNumberOfPayments = $this->showPage->getPaymentsCount();
723 723
 
724
-        Assert::same((int)$number, $actualNumberOfPayments);
724
+        Assert::same((int) $number, $actualNumberOfPayments);
725 725
     }
726 726
 
727 727
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Order/UpdatePage.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
      */
46 46
     private function specifyAddress(AddressInterface $address, $addressType)
47 47
     {
48
-        $this->specifyElementValue($addressType.'_first_name', $address->getFirstName());
49
-        $this->specifyElementValue($addressType.'_last_name', $address->getLastName());
50
-        $this->specifyElementValue($addressType.'_street', $address->getStreet());
51
-        $this->specifyElementValue($addressType.'_city', $address->getCity());
52
-        $this->specifyElementValue($addressType.'_postcode', $address->getPostcode());
48
+        $this->specifyElementValue($addressType . '_first_name', $address->getFirstName());
49
+        $this->specifyElementValue($addressType . '_last_name', $address->getLastName());
50
+        $this->specifyElementValue($addressType . '_street', $address->getStreet());
51
+        $this->specifyElementValue($addressType . '_city', $address->getCity());
52
+        $this->specifyElementValue($addressType . '_postcode', $address->getPostcode());
53 53
 
54 54
         $this->chooseCountry($address->getCountryCode(), $addressType);
55 55
     }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     private function chooseCountry($country, $addressType)
116 116
     {
117
-        $this->getElement($addressType.'_country')->selectOption((null !== $country) ? $country : 'Select');
117
+        $this->getElement($addressType . '_country')->selectOption((null !== $country) ? $country : 'Select');
118 118
     }
119 119
 
120 120
     /**
Please login to merge, or discard this patch.
Bundle/PayumBundle/Action/Paypal/ExpressCheckout/ConvertPaymentAction.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -57,33 +57,33 @@
 block discarded – undo
57 57
 
58 58
         $m = 0;
59 59
         foreach ($order->getItems() as $item) {
60
-            $details['L_PAYMENTREQUEST_0_NAME'.$m] = $item->getVariant()->getProduct()->getName();
61
-            $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($item->getDiscountedUnitPrice());
62
-            $details['L_PAYMENTREQUEST_0_QTY'.$m] = $item->getQuantity();
60
+            $details['L_PAYMENTREQUEST_0_NAME' . $m] = $item->getVariant()->getProduct()->getName();
61
+            $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($item->getDiscountedUnitPrice());
62
+            $details['L_PAYMENTREQUEST_0_QTY' . $m] = $item->getQuantity();
63 63
 
64 64
             ++$m;
65 65
         }
66 66
 
67 67
         if (0 !== $taxTotal = $order->getAdjustmentsTotalRecursively(AdjustmentInterface::TAX_ADJUSTMENT)) {
68
-            $details['L_PAYMENTREQUEST_0_NAME'.$m] = 'Tax Total';
69
-            $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($taxTotal);
70
-            $details['L_PAYMENTREQUEST_0_QTY'.$m] = 1;
68
+            $details['L_PAYMENTREQUEST_0_NAME' . $m] = 'Tax Total';
69
+            $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($taxTotal);
70
+            $details['L_PAYMENTREQUEST_0_QTY' . $m] = 1;
71 71
 
72 72
             ++$m;
73 73
         }
74 74
 
75 75
         if (0 !== $promotionTotal = $order->getOrderPromotionTotal()) {
76
-            $details['L_PAYMENTREQUEST_0_NAME'.$m] = 'Discount';
77
-            $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($promotionTotal);
78
-            $details['L_PAYMENTREQUEST_0_QTY'.$m] = 1;
76
+            $details['L_PAYMENTREQUEST_0_NAME' . $m] = 'Discount';
77
+            $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($promotionTotal);
78
+            $details['L_PAYMENTREQUEST_0_QTY' . $m] = 1;
79 79
 
80 80
             ++$m;
81 81
         }
82 82
 
83 83
         if (0 !== $shippingTotal = $order->getShippingTotal()) {
84
-            $details['L_PAYMENTREQUEST_0_NAME'.$m] = 'Shipping Total';
85
-            $details['L_PAYMENTREQUEST_0_AMT'.$m] = $this->formatPrice($shippingTotal);
86
-            $details['L_PAYMENTREQUEST_0_QTY'.$m] = 1;
84
+            $details['L_PAYMENTREQUEST_0_NAME' . $m] = 'Shipping Total';
85
+            $details['L_PAYMENTREQUEST_0_AMT' . $m] = $this->formatPrice($shippingTotal);
86
+            $details['L_PAYMENTREQUEST_0_QTY' . $m] = 1;
87 87
         }
88 88
 
89 89
         $request->setResult($details);
Please login to merge, or discard this patch.
tests/Controller/CurrencyApiTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
121 121
         $currencies = $this->loadFixturesFromFile('resources/currencies.yml');
122 122
 
123
-        $this->client->request('GET', '/api/currencies/'.$currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept);
123
+        $this->client->request('GET', '/api/currencies/' . $currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept);
124 124
 
125 125
         $response = $this->client->getResponse();
126 126
         $this->assertResponse($response, 'currency/show_response', Response::HTTP_OK);
@@ -141,12 +141,12 @@  discard block
 block discarded – undo
141 141
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
142 142
         $currencies = $this->loadFixturesFromFile('resources/currencies.yml');
143 143
 
144
-        $this->client->request('DELETE', '/api/currencies/'.$currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithContentType, []);
144
+        $this->client->request('DELETE', '/api/currencies/' . $currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithContentType, []);
145 145
 
146 146
         $response = $this->client->getResponse();
147 147
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
148 148
 
149
-        $this->client->request('GET', '/api/currencies/'.$currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept);
149
+        $this->client->request('GET', '/api/currencies/' . $currencies['currency_1']->getCode(), [], [], static::$authorizedHeaderWithAccept);
150 150
 
151 151
         $response = $this->client->getResponse();
152 152
         $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND);
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/Factory/AdminUserExampleFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
                 return $this->faker->email;
97 97
             })
98 98
             ->setDefault('username', function (Options $options) {
99
-                return $this->faker->firstName.' '.$this->faker->lastName;
99
+                return $this->faker->firstName . ' ' . $this->faker->lastName;
100 100
             })
101 101
             ->setDefault('enabled', true)
102 102
             ->setAllowedTypes('enabled', 'bool')
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/Factory/ChannelExampleFactory.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
         $this->channelFactory = $channelFactory;
65 65
         $this->localeRepository = $localeRepository;
66
-        $this->currencyRepository= $currencyRepository;
66
+        $this->currencyRepository = $currencyRepository;
67 67
 
68 68
         $this->faker = \Faker\Factory::create();
69 69
         $this->optionsResolver = new OptionsResolver();
Please login to merge, or discard this patch.
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/Behat/Context/Setup/ProductContext.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
             $channel = $this->sharedStorage->get('channel');
196 196
         }
197 197
         $product = $this->createProduct($productName, $price, null, $channel);
198
-        $product->setDescription('Awesome '.$productName);
198
+        $product->setDescription('Awesome ' . $productName);
199 199
 
200 200
         if (null !== $channel) {
201 201
             $product->addChannel($channel);
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
         /** @var ProductVariantInterface $productVariant */
251 251
         $productVariant = $this->defaultVariantResolver->getVariant($product);
252 252
 
253
-        $product->setDescription('Awesome '.$productName);
253
+        $product->setDescription('Awesome ' . $productName);
254 254
 
255 255
         foreach ($channels as $channel) {
256 256
             $product->addChannel($channel);
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
         $product->setCode(StringInflector::nameToUppercaseCode($productName));
301 301
         $product->setSlug($this->slugGenerator->generate($productName));
302 302
 
303
-        $product->setDescription('Awesome '.$productName);
303
+        $product->setDescription('Awesome ' . $productName);
304 304
 
305 305
         if ($this->sharedStorage->has('channel')) {
306 306
             $channel = $this->sharedStorage->get('channel');
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
     public function thisProductHasPercentAttributeWithValue(ProductInterface $product, $productAttributeName, $value)
445 445
     {
446 446
         $attribute = $this->createProductAttribute('percent', $productAttributeName);
447
-        $attributeValue = $this->createProductAttributeValue($value/100, $attribute);
447
+        $attributeValue = $this->createProductAttributeValue($value / 100, $attribute);
448 448
         $product->addAttribute($attributeValue);
449 449
 
450 450
         $this->objectManager->flush();
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
     {
471 471
         $attribute = $this->createProductAttribute('percent', $productAttributeName);
472 472
         $attribute->setPosition($position);
473
-        $attributeValue = $this->createProductAttributeValue(rand(1, 100)/100, $attribute);
473
+        $attributeValue = $this->createProductAttributeValue(rand(1, 100) / 100, $attribute);
474 474
 
475 475
         $product->addAttribute($attributeValue);
476 476
 
@@ -660,7 +660,7 @@  discard block
 block discarded – undo
660 660
 
661 661
         /** @var ImageInterface $productImage */
662 662
         $productImage = $this->productImageFactory->createNew();
663
-        $productImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath)));
663
+        $productImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath)));
664 664
         $productImage->setCode($imageCode);
665 665
         $this->imageUploader->upload($productImage);
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.