Completed
Push — scalar-types/theme ( 71f30c )
by Kamil
21:15
created
tests/Controller/TaxCategoryApiTest.php 2 patches
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
             "name": "Clothing",
63 63
             "description": "All items classified as clothing."
64 64
         }
65
-EOT;
65
+eot;
66 66
 
67 67
         $this->client->request('POST', '/api/v1/tax-categories/', [], [], [
68 68
             'HTTP_Authorization' => 'Bearer SampleTokenNjZkNjY2MDEwMTAzMDkxMGE0OTlhYzU3NzYyMTE0ZGQ3ODcyMDAwM2EwMDZjNDI5NDlhMDdlMQ',
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
             "name": "Clothing & Accessories",
254 254
             "description": "All items classified as clothing with accessories."
255 255
         }
256
-EOT;
256
+eot;
257 257
 
258 258
         $this->client->request('PUT', $this->getTaxCategoryUrl($taxCategory), [], [], [
259 259
             'HTTP_Authorization' => 'Bearer SampleTokenNjZkNjY2MDEwMTAzMDkxMGE0OTlhYzU3NzYyMTE0ZGQ3ODcyMDAwM2EwMDZjNDI5NDlhMDdlMQ',
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
         {
295 295
             "name": "Clothing & Accessories"
296 296
         }
297
-EOT;
297
+eot;
298 298
 
299 299
         $this->client->request('PATCH', $this->getTaxCategoryUrl($taxCategory), [], [], [
300 300
             'HTTP_Authorization' => 'Bearer SampleTokenNjZkNjY2MDEwMTAzMDkxMGE0OTlhYzU3NzYyMTE0ZGQ3ODcyMDAwM2EwMDZjNDI5NDlhMDdlMQ',
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 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\Tests\Controller;
15 15
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
     {
185 185
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
186 186
         $taxCategories = $this->loadFixturesFromFile('resources/tax_categories.yml');
187
-        $taxCategory  = $taxCategories['tax_category_1'];
187
+        $taxCategory = $taxCategories['tax_category_1'];
188 188
 
189 189
         $this->client->request('GET', $this->getTaxCategoryUrl($taxCategory), [], [], [
190 190
             'HTTP_Authorization' => 'Bearer SampleTokenNjZkNjY2MDEwMTAzMDkxMGE0OTlhYzU3NzYyMTE0ZGQ3ODcyMDAwM2EwMDZjNDI5NDlhMDdlMQ',
Please login to merge, or discard this patch.
src/Sylius/Bundle/OrderBundle/Controller/OrderController.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -11,9 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 namespace Sylius\Bundle\OrderBundle\Controller;
13 13
 
14
-use Doctrine\ORM\EntityManager;
15 14
 use FOS\RestBundle\View\View;
16
-use Payum\Core\Registry\RegistryInterface;
17 15
 use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration;
18 16
 use Sylius\Bundle\ResourceBundle\Controller\ResourceController;
19 17
 use Sylius\Component\Core\Repository\OrderRepositoryInterface;
@@ -27,7 +25,6 @@  discard block
 block discarded – undo
27 25
 use Symfony\Component\HttpFoundation\Request;
28 26
 use Symfony\Component\HttpFoundation\Response;
29 27
 use Symfony\Component\HttpKernel\Exception\HttpException;
30
-use Webmozart\Assert\Assert;
31 28
 
32 29
 class OrderController extends ResourceController
33 30
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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\Bundle\OrderBundle\Controller;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Doctrine/ORM/AssociationHydrator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 
51 51
     /**
52 52
      * @param mixed $subjects
53
-     * @param array|string[] $associationsPaths
53
+     * @param string[] $associationsPaths
54 54
      */
55 55
     public function hydrateAssociations($subjects, array $associationsPaths)
56 56
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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\Bundle\CoreBundle\Doctrine\ORM;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Context/SessionAndChannelBasedCartContext.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 
14 14
 use Sylius\Component\Channel\Context\ChannelContextInterface;
15 15
 use Sylius\Component\Channel\Context\ChannelNotFoundException;
16
-use Sylius\Component\Core\Model\OrderInterface;
17 16
 use Sylius\Component\Core\Repository\OrderRepositoryInterface;
18 17
 use Sylius\Component\Order\Context\CartContextInterface;
19 18
 use Sylius\Component\Order\Context\CartNotFoundException;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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\Bundle\CoreBundle\Context;
15 15
 
Please login to merge, or discard this patch.
Sylius/Bundle/ResourceBundle/Controller/ResourceUpdateHandlerInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -23,6 +23,7 @@
 block discarded – undo
23 23
      * @param ResourceInterface $resource
24 24
      * @param RequestConfiguration $requestConfiguration
25 25
      * @param ObjectManager $manager
26
+     * @return void
26 27
      */
27 28
     public function handle(
28 29
         ResourceInterface $resource,
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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\Bundle\ResourceBundle\Controller;
15 15
 
Please login to merge, or discard this patch.
tests/Controller/CountryApiTest.php 2 patches
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
         {
73 73
             "code": "BE"
74 74
         }
75
-EOT;
75
+eot;
76 76
 
77 77
         $this->client->request('POST', '/api/v1/countries/', [], [], static::$authorizedHeaderWithContentType, $data);
78 78
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
                 }
99 99
             ]
100 100
         }
101
-EOT;
101
+eot;
102 102
 
103 103
         $this->client->request('POST', '/api/v1/countries/', [], [], static::$authorizedHeaderWithContentType, $data);
104 104
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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\Tests\Controller;
15 15
 
Please login to merge, or discard this patch.
tests/Controller/ExchangeRateApiTest.php 2 patches
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             "sourceCurrency": "EUR",
76 76
             "targetCurrency": "GBP"
77 77
         }
78
-EOT;
78
+eot;
79 79
 
80 80
         $this->client->request('POST', '/api/v1/exchange-rates/', [], [], static::$authorizedHeaderWithContentType, $data);
81 81
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             "sourceCurrency": "EUR",
99 99
             "targetCurrency": "GBP"
100 100
         }
101
-EOT;
101
+eot;
102 102
 
103 103
         $this->client->request('POST', '/api/v1/exchange-rates/', [], [], static::$authorizedHeaderWithContentType, $data);
104 104
 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
         {
230 230
             "ratio": 0.84
231 231
         }
232
-EOT;
232
+eot;
233 233
 
234 234
         $this->client->request('PUT', $this->getExchangeRateUrl($exchangeRate), [], [], static::$authorizedHeaderWithContentType, $data);
235 235
 
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
             "sourceCurrency": "GBP",
262 262
             "targetCurrency": "EUR"
263 263
         }
264
-EOT;
264
+eot;
265 265
 
266 266
         $this->client->request('PATCH', $this->getExchangeRateUrl($exchangeRate), [], [], static::$authorizedHeaderWithContentType, $data);
267 267
 
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
         {
291 291
             "ratio": "its-a-trap"
292 292
         }
293
-EOT;
293
+eot;
294 294
 
295 295
         $this->client->request('PUT', $this->getExchangeRateUrl($exchangeRate), [], [], static::$authorizedHeaderWithContentType, $data);
296 296
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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\Tests\Controller;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/Factory/ProductExampleFactory.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use Sylius\Bundle\CoreBundle\Fixture\OptionsResolver\LazyOption;
15 15
 use Sylius\Component\Attribute\AttributeType\SelectAttributeType;
16 16
 use Sylius\Component\Core\Formatter\StringInflector;
17
-use Sylius\Component\Core\Model\ChannelInterface;
18 17
 use Sylius\Component\Core\Model\ChannelPricingInterface;
19 18
 use Sylius\Component\Core\Model\ImageInterface;
20 19
 use Sylius\Component\Core\Model\ProductInterface;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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\Bundle\CoreBundle\Fixture\Factory;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ChannelPricingInterface.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace Sylius\Component\Core\Model;
4 4
 
5
-use Sylius\Component\Channel\Model\ChannelAwareInterface;
6 5
 use Sylius\Component\Resource\Model\ResourceInterface;
7 6
 
8 7
 /**
Please login to merge, or discard this patch.
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param ProductVariantInterface|null $productVariant
30
+     * @return void
30 31
      */
31 32
     public function setProductVariant(ProductVariantInterface $productVariant = null);
32 33
 
@@ -37,6 +38,7 @@  discard block
 block discarded – undo
37 38
 
38 39
     /**
39 40
      * @param int $price
41
+     * @return void
40 42
      */
41 43
     public function setPrice($price);
42 44
 
@@ -47,6 +49,7 @@  discard block
 block discarded – undo
47 49
 
48 50
     /**
49 51
      * @param string $channelCode
52
+     * @return void
50 53
      */
51 54
     public function setChannelCode($channelCode);
52 55
 
@@ -57,6 +60,7 @@  discard block
 block discarded – undo
57 60
 
58 61
     /**
59 62
      * @param int $originalPrice
63
+     * @return void
60 64
      */
61 65
     public function setOriginalPrice($originalPrice);
62 66
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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
 
Please login to merge, or discard this patch.