Completed
Push — scalar-types/theme ( 71f30c )
by Kamil
21:15
created
ThemeBundle/Configuration/Test/TestThemeConfigurationManagerInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -25,16 +25,19 @@
 block discarded – undo
25 25
 
26 26
     /**
27 27
      * @param array $configuration
28
+     * @return void
28 29
      */
29 30
     public function add(array $configuration): void;
30 31
 
31 32
     /**
32 33
      * @param string $themeName
34
+     * @return void
33 35
      */
34 36
     public function remove(string $themeName): void;
35 37
 
36 38
     /**
37 39
      * Clear currently used configurations storage.
40
+     * @return void
38 41
      */
39 42
     public function clear(): void;
40 43
 }
Please login to merge, or discard this patch.
Bundle/ThemeBundle/HierarchyProvider/ThemeHierarchyProviderInterface.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 interface ThemeHierarchyProviderInterface
22 22
 {
23 23
     /**
24
-     * @param ThemeInterface|null $theme
24
+     * @param ThemeInterface $theme
25 25
      *
26 26
      * @return array|ThemeInterface[]
27 27
      *
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Loader/CircularDependencyCheckerInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -24,6 +24,7 @@
 block discarded – undo
24 24
      * @param ThemeInterface $theme
25 25
      *
26 26
      * @throws CircularDependencyFoundException
27
+     * @return void
27 28
      */
28 29
     public function check(ThemeInterface $theme): void;
29 30
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Model/ThemeInterface.php 2 patches
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -35,6 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     /**
37 37
      * @param string|null $title
38
+     * @return void
38 39
      */
39 40
     public function setTitle(?string $title): void;
40 41
 
@@ -45,6 +46,7 @@  discard block
 block discarded – undo
45 46
 
46 47
     /**
47 48
      * @param string|null $description
49
+     * @return void
48 50
      */
49 51
     public function setDescription(?string $description): void;
50 52
 
@@ -55,11 +57,13 @@  discard block
 block discarded – undo
55 57
 
56 58
     /**
57 59
      * @param ThemeAuthor $author
60
+     * @return void
58 61
      */
59 62
     public function addAuthor(ThemeAuthor $author): void;
60 63
 
61 64
     /**
62 65
      * @param ThemeAuthor $author
66
+     * @return void
63 67
      */
64 68
     public function removeAuthor(ThemeAuthor $author): void;
65 69
 
@@ -70,11 +74,13 @@  discard block
 block discarded – undo
70 74
 
71 75
     /**
72 76
      * @param ThemeInterface $theme
77
+     * @return void
73 78
      */
74 79
     public function addParent(ThemeInterface $theme): void;
75 80
 
76 81
     /**
77 82
      * @param ThemeInterface $theme
83
+     * @return void
78 84
      */
79 85
     public function removeParent(ThemeInterface $theme): void;
80 86
 
@@ -85,11 +91,13 @@  discard block
 block discarded – undo
85 91
 
86 92
     /**
87 93
      * @param ThemeScreenshot $screenshot
94
+     * @return void
88 95
      */
89 96
     public function addScreenshot(ThemeScreenshot $screenshot): void;
90 97
 
91 98
     /**
92 99
      * @param ThemeScreenshot $screenshot
100
+     * @return void
93 101
      */
94 102
     public function removeScreenshot(ThemeScreenshot $screenshot): void;
95 103
 }
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\ThemeBundle\Model;
15 15
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * @param string|null $title
38 38
      */
39
-    public function setTitle(?string $title): void;
39
+    public function setTitle(?string $title) : void;
40 40
 
41 41
     /**
42 42
      * @return string|null
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     /**
47 47
      * @param string|null $description
48 48
      */
49
-    public function setDescription(?string $description): void;
49
+    public function setDescription(?string $description) : void;
50 50
 
51 51
     /**
52 52
      * @return array|ThemeAuthor[]
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/spec/Factory/ThemeScreenshotFactorySpec.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 namespace spec\Sylius\Bundle\ThemeBundle\Factory;
15 15
 
16 16
 use PhpSpec\ObjectBehavior;
17
-use Sylius\Bundle\ThemeBundle\Factory\ThemeScreenshotFactory;
18 17
 use Sylius\Bundle\ThemeBundle\Factory\ThemeScreenshotFactoryInterface;
19 18
 use Sylius\Bundle\ThemeBundle\Model\ThemeScreenshot;
20 19
 
Please login to merge, or discard this patch.
ThemeBundle/spec/Translation/Finder/OrderingTranslationFilesFinderSpec.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 namespace spec\Sylius\Bundle\ThemeBundle\Translation\Finder;
15 15
 
16 16
 use PhpSpec\ObjectBehavior;
17
-use Sylius\Bundle\ThemeBundle\Translation\Finder\OrderingTranslationFilesFinder;
18 17
 use Sylius\Bundle\ThemeBundle\Translation\Finder\TranslationFilesFinderInterface;
19 18
 
20 19
 /**
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Translation/Finder/TranslationFilesFinder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     /**
59 59
      * @param string $path
60 60
      *
61
-     * @return iterable|SplFileInfo[]
61
+     * @return \Symfony\Component\Finder\Finder
62 62
      */
63 63
     private function getFiles(string $path): iterable
64 64
     {
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Collector/ThemeCollector.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\ThemeBundle\Collector;
15 15
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     /**
90 90
      * {@inheritdoc}
91 91
      */
92
-    public function collect(Request $request, Response $response, ?\Exception $exception = null): void
92
+    public function collect(Request $request, Response $response, ?\Exception $exception = null) : void
93 93
     {
94 94
         $this->data['used_theme'] = $this->themeContext->getTheme();
95 95
         $this->data['used_themes'] = $this->themeHierarchyProvider->getThemeHierarchy($this->themeContext->getTheme());
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Translation/ThemeAwareTranslator.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\ThemeBundle\Translation;
15 15
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      *
122 122
      * @return string|null
123 123
      */
124
-    private function transformLocale(?string $locale): ?string
124
+    private function transformLocale(?string $locale) : ?string
125 125
     {
126 126
         $theme = $this->themeContext->getTheme();
127 127
 
Please login to merge, or discard this patch.