Completed
Push — scalar-types/resource ( 4814fd )
by Kamil
23:02
created
src/Sylius/Component/Resource/Model/TranslationInterface.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
     /**
27 27
      * @param TranslatableInterface|null $translatable
28
+     * @return void
28 29
      */
29 30
     public function setTranslatable(?TranslatableInterface $translatable): void;
30 31
 
@@ -35,6 +36,7 @@  discard block
 block discarded – undo
35 36
 
36 37
     /**
37 38
      * @param string|null $locale
39
+     * @return void
38 40
      */
39 41
     public function setLocale(?string $locale): void;
40 42
 }
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\Component\Resource\Model;
15 15
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * @param TranslatableInterface|null $translatable
28 28
      */
29
-    public function setTranslatable(?TranslatableInterface $translatable): void;
29
+    public function setTranslatable(?TranslatableInterface $translatable) : void;
30 30
 
31 31
     /**
32 32
      * @return string|null
@@ -36,5 +36,5 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * @param string|null $locale
38 38
      */
39
-    public function setLocale(?string $locale): void;
39
+    public function setLocale(?string $locale) : void;
40 40
 }
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
@@ -25,6 +25,7 @@
 block discarded – undo
25 25
 
26 26
     /**
27 27
      * @param int|null $version
28
+     * @return void
28 29
      */
29 30
     public function setVersion(?int $version): void;
30 31
 }
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\Component\Resource\Model;
15 15
 
@@ -26,5 +26,5 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * @param int|null $version
28 28
      */
29
-    public function setVersion(?int $version): void;
29
+    public function setVersion(?int $version) : void;
30 30
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Repository/RepositoryInterface.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,17 +29,19 @@
 block discarded – undo
29 29
      * @param array $criteria
30 30
      * @param array $sorting
31 31
      *
32
-     * @return iterable
32
+     * @return \Pagerfanta\Pagerfanta
33 33
      */
34 34
     public function createPaginator(array $criteria = [], array $sorting = []): iterable;
35 35
 
36 36
     /**
37 37
      * @param ResourceInterface $resource
38
+     * @return void
38 39
      */
39 40
     public function add(ResourceInterface $resource): void;
40 41
 
41 42
     /**
42 43
      * @param ResourceInterface $resource
44
+     * @return void
43 45
      */
44 46
     public function remove(ResourceInterface $resource): void;
45 47
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Storage/StorageInterface.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,12 +35,14 @@
 block discarded – undo
35 35
 
36 36
     /**
37 37
      * @param string $name
38
-     * @param mixed $value
38
+     * @param string $value
39
+     * @return void
39 40
      */
40 41
     public function set(string $name, $value): void;
41 42
 
42 43
     /**
43 44
      * @param string $name
45
+     * @return void
44 46
      */
45 47
     public function remove(string $name): void;
46 48
 
Please login to merge, or discard this patch.
Resource/Translation/TranslatableEntityLocaleAssignerInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -22,6 +22,7 @@
 block discarded – undo
22 22
 {
23 23
     /**
24 24
      * @param TranslatableInterface $translatableEntity
25
+     * @return void
25 26
      */
26 27
     public function assignLocale(TranslatableInterface $translatableEntity): void;
27 28
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/PaymentBundle/test/app/AppKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      */
44 44
     public function registerContainerConfiguration(LoaderInterface $loader): void
45 45
     {
46
-        $loader->load(__DIR__.'/config/config.yml');
46
+        $loader->load(__DIR__ . '/config/config.yml');
47 47
     }
48 48
 
49 49
     /**
Please login to merge, or discard this patch.
Sylius/Bundle/PaymentBundle/DependencyInjection/SyliusPaymentExtension.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\PaymentBundle\DependencyInjection;
15 15
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public function load(array $config, ContainerBuilder $container): void
30 30
     {
31 31
         $config = $this->processConfiguration($this->getConfiguration([], $container), $config);
32
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
32
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
33 33
 
34 34
         $this->registerResources('sylius', $config['driver'], $config['resources'], $container);
35 35
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Routing/ResourceLoader.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\Routing;
15 15
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         bool $isApi = false
153 153
     ): Route {
154 154
         $defaults = [
155
-            '_controller' => $metadata->getServiceId('controller').sprintf(':%sAction', $actionName),
155
+            '_controller' => $metadata->getServiceId('controller') . sprintf(':%sAction', $actionName),
156 156
         ];
157 157
 
158 158
         if ($isApi && 'index' === $actionName) {
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      */
212 212
     private function getRouteName(MetadataInterface $metadata, array $configuration, string $actionName): string
213 213
     {
214
-        $sectionPrefix = isset($configuration['section']) ? $configuration['section'].'_' : '';
214
+        $sectionPrefix = isset($configuration['section']) ? $configuration['section'] . '_' : '';
215 215
 
216 216
         return sprintf('%s_%s%s_%s', $metadata->getApplicationName(), $sectionPrefix, $metadata->getName(), $actionName);
217 217
     }
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
         $metadata->mapOneToMany([
130 130
             'fieldName' => 'translations',
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         if (!$this->hasUniqueConstraint($metadata, $columns)) {
185 185
             $constraints = $metadata->table['uniqueConstraints'] ?? [];
186 186
 
187
-            $constraints[$metadata->getTableName().'_uniq_trans'] = [
187
+            $constraints[$metadata->getTableName() . '_uniq_trans'] = [
188 188
                 'columns' => $columns,
189 189
             ];
190 190
 
Please login to merge, or discard this patch.