Completed
Push — pull-request/8500 ( e49efc )
by Kamil
18:54
created
Sylius/Bundle/MailerBundle/spec/Renderer/Adapter/EmailTwigAdapterSpec.php 1 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\MailerBundle\Renderer\Adapter;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Component/Mailer/Sender/SenderInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -23,6 +23,7 @@
 block discarded – undo
23 23
      * @param array $recipients
24 24
      * @param array $data
25 25
      * @param array $attachments
26
+     * @return void
26 27
      */
27 28
     public function send(string $code, array $recipients, array $data = [], array $attachments = [], array $replyTo = []): void;
28 29
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/EventListener/ORMTranslatableListener.php 1 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\EventListener;
15 15
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         }
125 125
 
126 126
         /** @var MetadataInterface $translationResourceMetadata */
127
-        $translationResourceMetadata = $this->resourceMetadataRegistry->get($resourceMetadata->getAlias().'_translation');
127
+        $translationResourceMetadata = $this->resourceMetadataRegistry->get($resourceMetadata->getAlias() . '_translation');
128 128
 
129 129
         if (!$metadata->hasAssociation('translations')) {
130 130
             $metadata->mapOneToMany([
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         if (!$this->hasUniqueConstraint($metadata, $columns)) {
189 189
             $constraints = $metadata->table['uniqueConstraints'] ?? [];
190 190
 
191
-            $constraints[$metadata->getTableName().'_uniq_trans'] = [
191
+            $constraints[$metadata->getTableName() . '_uniq_trans'] = [
192 192
                 'columns' => $columns,
193 193
             ];
194 194
 
Please login to merge, or discard this patch.
Bundle/ResourceBundle/DependencyInjection/SyliusResourceExtension.php 1 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\Bundle\ResourceBundle\DependencyInjection;
15 15
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     public function load(array $config, ContainerBuilder $container): void
35 35
     {
36 36
         $config = $this->processConfiguration($this->getConfiguration([], $container), $config);
37
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
37
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
38 38
 
39 39
         $loader->load('services.xml');
40 40
 
Please login to merge, or discard this patch.
ResourceBundle/DependencyInjection/Extension/AbstractResourceExtension.php 1 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\Bundle\ResourceBundle\DependencyInjection\Extension;
15 15
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         $container->setParameter(sprintf('%s.driver', $this->getAlias()), $driver);
40 40
 
41 41
         foreach ($resources as $resourceName => $resourceConfig) {
42
-            $alias = $applicationName.'.'.$resourceName;
42
+            $alias = $applicationName . '.' . $resourceName;
43 43
             $resourceConfig = array_merge(['driver' => $driver], $resourceConfig);
44 44
 
45 45
             $resources = $container->hasParameter('sylius.resources') ? $container->getParameter('sylius.resources') : [];
Please login to merge, or discard this patch.
src/Sylius/Bundle/AdminBundle/Twig/ShopExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Sylius\Bundle\AdminBundle\Twig;
6 6
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public function getFunctions(): array
26 26
     {
27 27
         return [
28
-            new \Twig_Function('is_shop_enabled', function(): bool {
28
+            new \Twig_Function('is_shop_enabled', function (): bool {
29 29
                 return $this->isShopEnabled;
30 30
             })
31 31
         ];
Please login to merge, or discard this patch.
src/Sylius/Behat/Service/Accessor/TableAccessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Sylius\Behat\Service\Accessor;
6 6
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                 return false;
141 141
             }
142 142
 
143
-            $searchedValue = (string)$searchedValue;
143
+            $searchedValue = (string) $searchedValue;
144 144
             $searchedValue = trim($searchedValue);
145 145
 
146 146
             if (0 === strpos($searchedValue, '%') && (strlen($searchedValue) - 1) === strrpos($searchedValue, '%')) {
Please login to merge, or discard this patch.
Core/spec/Taxation/Applicator/OrderShipmentTaxesApplicatorSpec.php 1 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\Component\Core\Taxation\Applicator;
15 15
 
Please login to merge, or discard this patch.
Sylius/Bundle/AddressingBundle/Tests/Form/Type/CountryChoiceTypeTest.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -7,10 +7,8 @@
 block discarded – undo
7 7
 use PHPUnit\Framework\Assert;
8 8
 use Prophecy\Prophecy\ProphecyInterface;
9 9
 use Sylius\Bundle\AddressingBundle\Form\Type\CountryChoiceType;
10
-use Sylius\Component\Addressing\Model\Country;
11 10
 use Sylius\Component\Addressing\Model\CountryInterface;
12 11
 use Sylius\Component\Resource\Repository\RepositoryInterface;
13
-use Symfony\Component\Form\ChoiceList\View\ChoiceListView;
14 12
 use Symfony\Component\Form\ChoiceList\View\ChoiceView;
15 13
 use Symfony\Component\Form\PreloadedExtension;
16 14
 use Symfony\Component\Form\Test\TypeTestCase;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Sylius\Bundle\AddressingBundle\Tests\Form\Type;
6 6
 
Please login to merge, or discard this patch.