Completed
Push — travis-trusty ( 62da84...e797f4 )
by Kamil
76:02 queued 52:05
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.
src/Sylius/Bundle/ResourceBundle/Controller/FlashHelperInterface.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -23,18 +23,21 @@
 block discarded – undo
23 23
      * @param RequestConfiguration $requestConfiguration
24 24
      * @param string $actionName
25 25
      * @param ResourceInterface|null $resource
26
+     * @return void
26 27
      */
27 28
     public function addSuccessFlash(RequestConfiguration $requestConfiguration, $actionName, ResourceInterface $resource = null);
28 29
 
29 30
     /**
30 31
      * @param RequestConfiguration $requestConfiguration
31 32
      * @param string $actionName
33
+     * @return void
32 34
      */
33 35
     public function addErrorFlash(RequestConfiguration $requestConfiguration, $actionName);
34 36
 
35 37
     /**
36 38
      * @param RequestConfiguration $requestConfiguration
37 39
      * @param ResourceControllerEvent $event
40
+     * @return void
38 41
      */
39 42
     public function addFlashFromEvent(RequestConfiguration $requestConfiguration, ResourceControllerEvent $event);
40 43
 }
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.
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.
src/Sylius/Bundle/ResourceBundle/spec/Controller/ResourceControllerSpec.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
 use Sylius\Bundle\ResourceBundle\Controller\RequestConfigurationFactoryInterface;
26 26
 use Sylius\Bundle\ResourceBundle\Controller\ResourceController;
27 27
 use Sylius\Bundle\ResourceBundle\Controller\ResourceFormFactoryInterface;
28
-use Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface;
29 28
 use Sylius\Bundle\ResourceBundle\Controller\ResourceUpdateHandlerInterface;
29
+use Sylius\Bundle\ResourceBundle\Controller\ResourcesCollectionProviderInterface;
30 30
 use Sylius\Bundle\ResourceBundle\Controller\SingleResourceProviderInterface;
31 31
 use Sylius\Bundle\ResourceBundle\Controller\StateMachineInterface;
32 32
 use Sylius\Bundle\ResourceBundle\Controller\ViewHandlerInterface;
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 spec\Sylius\Bundle\ResourceBundle\Controller;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Model/VersionedInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -23,6 +23,7 @@
 block discarded – undo
23 23
 
24 24
     /**
25 25
      * @param int $version
26
+     * @return void
26 27
      */
27 28
     public function setVersion($version);
28 29
 }
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\Resource\Model;
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.