Completed
Push — pull-request/8500 ( e49efc...54b484 )
by Kamil
36:05 queued 17:36
created
src/Sylius/Bundle/TaxationBundle/test/app/autoload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 
12 12
 use Doctrine\Common\Annotations\AnnotationRegistry;
13 13
 
14
-$loader = require __DIR__.'/../../vendor/autoload.php';
14
+$loader = require __DIR__ . '/../../vendor/autoload.php';
15 15
 
16
-require __DIR__.'/AppKernel.php';
16
+require __DIR__ . '/AppKernel.php';
17 17
 
18 18
 AnnotationRegistry::registerLoader([$loader, 'loadClass']);
19 19
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/GridBundle/test/app/autoload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 
12 12
 use Doctrine\Common\Annotations\AnnotationRegistry;
13 13
 
14
-$loader = require __DIR__.'/../../vendor/autoload.php';
14
+$loader = require __DIR__ . '/../../vendor/autoload.php';
15 15
 
16
-require __DIR__.'/AppKernel.php';
16
+require __DIR__ . '/AppKernel.php';
17 17
 
18 18
 AnnotationRegistry::registerLoader([$loader, 'loadClass']);
19 19
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/InventoryBundle/test/app/autoload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 
12 12
 use Doctrine\Common\Annotations\AnnotationRegistry;
13 13
 
14
-$loader = require __DIR__.'/../../vendor/autoload.php';
14
+$loader = require __DIR__ . '/../../vendor/autoload.php';
15 15
 
16
-require __DIR__.'/AppKernel.php';
16
+require __DIR__ . '/AppKernel.php';
17 17
 
18 18
 AnnotationRegistry::registerLoader([$loader, 'loadClass']);
19 19
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Shop/CheckoutContext.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -130,6 +130,8 @@
 block discarded – undo
130 130
     /**
131 131
      * @Given I have proceeded order with :shippingMethodName shipping method and :paymentMethodName payment
132 132
      * @When I proceed with :shippingMethodName shipping method and :paymentMethodName payment
133
+     * @param string $shippingMethodName
134
+     * @param string $paymentMethodName
133 135
      */
134 136
     public function iProceedOrderWithShippingMethodAndPayment($shippingMethodName, $paymentMethodName)
135 137
     {
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\Behat\Context\Ui\Shop;
15 15
 
Please login to merge, or discard this patch.
tests/Controller/LocaleApiTest.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
         {
103 103
             "code": "es_ES"
104 104
         }
105
-EOT;
105
+eot;
106 106
 
107 107
         $this->client->request('POST', '/api/v1/locales/', [], [], static::$authorizedHeaderWithContentType, $data);
108 108
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 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
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
74 74
         $locales = $this->loadFixturesFromFile('resources/locales.yml');
75 75
 
76
-        $this->client->request('GET', '/api/v1/locales/'.$locales['locale_en_US']->getCode(), [], [], static::$authorizedHeaderWithAccept);
76
+        $this->client->request('GET', '/api/v1/locales/' . $locales['locale_en_US']->getCode(), [], [], static::$authorizedHeaderWithAccept);
77 77
 
78 78
         $response = $this->client->getResponse();
79 79
         $this->assertResponse($response, 'locale/show_response', Response::HTTP_OK);
@@ -158,12 +158,12 @@  discard block
 block discarded – undo
158 158
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
159 159
         $locales = $this->loadFixturesFromFile('resources/locales.yml');
160 160
 
161
-        $this->client->request('DELETE', '/api/v1/locales/'.$locales['locale_en_US']->getCode(), [], [], static::$authorizedHeaderWithContentType, []);
161
+        $this->client->request('DELETE', '/api/v1/locales/' . $locales['locale_en_US']->getCode(), [], [], static::$authorizedHeaderWithContentType, []);
162 162
 
163 163
         $response = $this->client->getResponse();
164 164
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
165 165
 
166
-        $this->client->request('GET', '/api/v1/locales/'.$locales['locale_en_US']->getId(), [], [], static::$authorizedHeaderWithAccept);
166
+        $this->client->request('GET', '/api/v1/locales/' . $locales['locale_en_US']->getId(), [], [], static::$authorizedHeaderWithAccept);
167 167
 
168 168
         $response = $this->client->getResponse();
169 169
         $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND);
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/ProductContext.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@  discard block
 block discarded – undo
16 16
 use Behat\Mink\Element\NodeElement;
17 17
 use Doctrine\Common\Persistence\ObjectManager;
18 18
 use Sylius\Behat\Service\SharedStorageInterface;
19
-use Sylius\Component\Attribute\Factory\AttributeFactoryInterface;
20 19
 use Sylius\Component\Core\Formatter\StringInflector;
21 20
 use Sylius\Component\Core\Model\ChannelInterface;
22 21
 use Sylius\Component\Core\Model\ChannelPricingInterface;
@@ -34,7 +33,6 @@  discard block
 block discarded – undo
34 33
 use Sylius\Component\Product\Resolver\ProductVariantResolverInterface;
35 34
 use Sylius\Component\Resource\Factory\FactoryInterface;
36 35
 use Sylius\Component\Resource\Model\TranslationInterface;
37
-use Sylius\Component\Resource\Repository\RepositoryInterface;
38 36
 use Sylius\Component\Shipping\Model\ShippingCategoryInterface;
39 37
 use Sylius\Component\Taxation\Model\TaxCategoryInterface;
40 38
 use Symfony\Component\HttpFoundation\File\UploadedFile;
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\Behat\Context\Setup;
15 15
 
@@ -750,7 +750,7 @@  discard block
 block discarded – undo
750 750
 
751 751
         /** @var ImageInterface $productImage */
752 752
         $productImage = $this->productImageFactory->createNew();
753
-        $productImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath)));
753
+        $productImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath)));
754 754
         $productImage->setType($imageType);
755 755
         $this->imageUploader->upload($productImage);
756 756
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Shop/ProductContext.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
 
14 14
 use Behat\Behat\Context\Context;
15 15
 use Behat\Mink\Element\NodeElement;
16
+use Sylius\Behat\Page\Shop\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface;
16 17
 use Sylius\Behat\Page\Shop\Product\IndexPageInterface;
17 18
 use Sylius\Behat\Page\Shop\Product\ShowPageInterface;
18
-use Sylius\Behat\Page\Shop\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface;
19 19
 use Sylius\Component\Core\Model\ProductInterface;
20 20
 use Sylius\Component\Core\Model\TaxonInterface;
21 21
 use Webmozart\Assert\Assert;
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\Behat\Context\Ui\Shop;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Controller/RequestConfiguration.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     /**
172 172
      * @param $name
173 173
      *
174
-     * @return mixed|null|string
174
+     * @return string
175 175
      */
176 176
     public function getRedirectRoute($name)
177 177
     {
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
     }
232 232
 
233 233
     /**
234
-     * @param object|null $resource
234
+     * @param \Sylius\Component\Resource\Model\ResourceInterface|null $resource
235 235
      *
236 236
      * @return array
237 237
      */
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
     }
351 351
 
352 352
     /**
353
-     * @param $parameter
353
+     * @param string $parameter
354 354
      * @param array $defaults
355 355
      *
356 356
      * @return array
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
     }
455 455
 
456 456
     /**
457
-     * @return mixed|null
457
+     * @return string
458 458
      */
459 459
     public function getSerializationVersion()
460 460
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 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\Bundle\ResourceBundle\Controller;
15 15
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      */
166 166
     public function getRouteName($name)
167 167
     {
168
-        $sectionPrefix = $this->getSection() ? $this->getSection().'_' : '';
168
+        $sectionPrefix = $this->getSection() ? $this->getSection() . '_' : '';
169 169
 
170 170
         return sprintf('%s_%s%s_%s', $this->metadata->getApplicationName(), $sectionPrefix, $this->metadata->getName(), $name);
171 171
     }
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
             return '';
208 208
         }
209 209
 
210
-        return '#'.$redirect['hash'];
210
+        return '#' . $redirect['hash'];
211 211
     }
212 212
 
213 213
     /**
Please login to merge, or discard this patch.
src/Sylius/Bundle/ReviewBundle/DependencyInjection/Configuration.php 2 patches
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,12 +12,11 @@
 block discarded – undo
12 12
 namespace Sylius\Bundle\ReviewBundle\DependencyInjection;
13 13
 
14 14
 use Sylius\Bundle\ResourceBundle\Controller\ResourceController;
15
-use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository;
16 15
 use Sylius\Bundle\ResourceBundle\SyliusResourceBundle;
17 16
 use Sylius\Bundle\ReviewBundle\Form\Type\ReviewType;
18 17
 use Sylius\Component\Resource\Factory\Factory;
19
-use Sylius\Component\Review\Model\ReviewerInterface;
20 18
 use Sylius\Component\Review\Model\ReviewInterface;
19
+use Sylius\Component\Review\Model\ReviewerInterface;
21 20
 use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
22 21
 use Symfony\Component\Config\Definition\Builder\TreeBuilder;
23 22
 use Symfony\Component\Config\Definition\ConfigurationInterface;
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\ReviewBundle\DependencyInjection;
15 15
 
Please login to merge, or discard this patch.