@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace spec\Sylius\Bundle\FixturesBundle\Loader; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | 15 | use Sylius\Bundle\FixturesBundle\Listener\AfterSuiteListenerInterface; |
17 | 16 | use Sylius\Bundle\FixturesBundle\Listener\BeforeSuiteListenerInterface; |
18 | 17 | use Sylius\Bundle\FixturesBundle\Listener\SuiteEvent; |
@@ -9,7 +9,7 @@ |
||
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\FixturesBundle\Loader; |
15 | 15 |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace spec\Sylius\Bundle\FixturesBundle\Loader; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | 15 | use Sylius\Bundle\FixturesBundle\Fixture\FixtureInterface; |
17 | 16 | use Sylius\Bundle\FixturesBundle\Loader\FixtureLoaderInterface; |
18 | 17 | use Sylius\Bundle\FixturesBundle\Loader\SuiteLoader; |
@@ -9,7 +9,7 @@ |
||
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\FixturesBundle\Loader; |
15 | 15 |
@@ -187,6 +187,7 @@ |
||
187 | 187 | |
188 | 188 | /** |
189 | 189 | * {@inheritdoc} |
190 | + * @param string $field |
|
190 | 191 | */ |
191 | 192 | private function getFieldName($field) |
192 | 193 | { |
@@ -11,8 +11,8 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\GridBundle\Doctrine\ORM; |
13 | 13 | |
14 | -use Doctrine\ORM\Query\Expr\Comparison; |
|
15 | 14 | use Doctrine\ORM\QueryBuilder; |
15 | +use Doctrine\ORM\Query\Expr\Comparison; |
|
16 | 16 | use Sylius\Component\Grid\Data\ExpressionBuilderInterface; |
17 | 17 | |
18 | 18 | /** |
@@ -9,7 +9,7 @@ discard block |
||
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\GridBundle\Doctrine\ORM; |
15 | 15 | |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $parameterName = $this->getParameterName($field); |
68 | 68 | $this->queryBuilder->setParameter($parameterName, $value); |
69 | 69 | |
70 | - return $this->queryBuilder->expr()->eq($this->getFieldName($field), ':'.$parameterName); |
|
70 | + return $this->queryBuilder->expr()->eq($this->getFieldName($field), ':' . $parameterName); |
|
71 | 71 | } |
72 | 72 | |
73 | 73 | /** |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $parameterName = $this->getParameterName($field); |
79 | 79 | $this->queryBuilder->setParameter($parameterName, $value); |
80 | 80 | |
81 | - return $this->queryBuilder->expr()->neq($this->getFieldName($field), ':'.$parameterName); |
|
81 | + return $this->queryBuilder->expr()->neq($this->getFieldName($field), ':' . $parameterName); |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | $parameterName = $this->getParameterName($field); |
90 | 90 | $this->queryBuilder->setParameter($parameterName, $value); |
91 | 91 | |
92 | - $this->queryBuilder->andWhere($this->getFieldName($field).' < :'.$parameterName); |
|
92 | + $this->queryBuilder->andWhere($this->getFieldName($field) . ' < :' . $parameterName); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | $parameterName = $this->getParameterName($field); |
101 | 101 | $this->queryBuilder->setParameter($parameterName, $value); |
102 | 102 | |
103 | - $this->queryBuilder->andWhere($this->getFieldName($field).' <= :'.$parameterName); |
|
103 | + $this->queryBuilder->andWhere($this->getFieldName($field) . ' <= :' . $parameterName); |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | $parameterName = $this->getParameterName($field); |
112 | 112 | $this->queryBuilder->setParameter($parameterName, $value); |
113 | 113 | |
114 | - $this->queryBuilder->andWhere($this->getFieldName($field).' > :'.$parameterName); |
|
114 | + $this->queryBuilder->andWhere($this->getFieldName($field) . ' > :' . $parameterName); |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | /** |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $parameterName = $this->getParameterName($field); |
123 | 123 | $this->queryBuilder->setParameter($parameterName, $value); |
124 | 124 | |
125 | - $this->queryBuilder->andWhere($this->getFieldName($field).' >= :'.$parameterName); |
|
125 | + $this->queryBuilder->andWhere($this->getFieldName($field) . ' >= :' . $parameterName); |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | /** |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | private function getFieldName($field) |
196 | 196 | { |
197 | 197 | if (false === strpos($field, '.')) { |
198 | - return $this->queryBuilder->getRootAlias().'.'.$field; |
|
198 | + return $this->queryBuilder->getRootAlias() . '.' . $field; |
|
199 | 199 | } |
200 | 200 | |
201 | 201 | return $field; |
@@ -153,7 +153,7 @@ |
||
153 | 153 | * Check if a unique constraint has been defined. |
154 | 154 | * |
155 | 155 | * @param ClassMetadata $metadata |
156 | - * @param array $columns |
|
156 | + * @param string[] $columns |
|
157 | 157 | * |
158 | 158 | * @return bool |
159 | 159 | */ |
@@ -21,7 +21,6 @@ |
||
21 | 21 | use Sylius\Component\Resource\Metadata\RegistryInterface; |
22 | 22 | use Sylius\Component\Resource\Model\TranslatableInterface; |
23 | 23 | use Sylius\Component\Resource\Model\TranslationInterface; |
24 | -use Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface; |
|
25 | 24 | use Sylius\Component\Resource\Translation\TranslatableEntityLocaleAssignerInterface; |
26 | 25 | use Symfony\Component\DependencyInjection\ContainerInterface; |
27 | 26 |
@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -13,8 +13,8 @@ |
||
13 | 13 | |
14 | 14 | use Doctrine\Common\Persistence\ObjectManager; |
15 | 15 | use Sylius\Component\Review\Calculator\ReviewableRatingCalculatorInterface; |
16 | -use Sylius\Component\Review\Model\ReviewableInterface; |
|
17 | 16 | use Sylius\Component\Review\Model\ReviewInterface; |
17 | +use Sylius\Component\Review\Model\ReviewableInterface; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * @author Mateusz Zalewski <[email protected]> |
@@ -9,7 +9,7 @@ |
||
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\Updater; |
15 | 15 |
@@ -11,8 +11,8 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\ReviewBundle\Updater; |
13 | 13 | |
14 | -use Sylius\Component\Review\Model\ReviewableInterface; |
|
15 | 14 | use Sylius\Component\Review\Model\ReviewInterface; |
15 | +use Sylius\Component\Review\Model\ReviewableInterface; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * @author Mateusz Zalewski <[email protected]> |
@@ -9,7 +9,7 @@ |
||
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\Updater; |
15 | 15 |
@@ -24,11 +24,13 @@ |
||
24 | 24 | { |
25 | 25 | /** |
26 | 26 | * @param ReviewableInterface $reviewSubject |
27 | + * @return void |
|
27 | 28 | */ |
28 | 29 | public function update(ReviewableInterface $reviewSubject): void; |
29 | 30 | |
30 | 31 | /** |
31 | 32 | * @param ReviewInterface $review |
33 | + * @return void |
|
32 | 34 | */ |
33 | 35 | public function updateFromReview(ReviewInterface $review): void; |
34 | 36 | } |
@@ -33,6 +33,7 @@ discard block |
||
33 | 33 | * |
34 | 34 | * @throws FileNotFoundException When originFile doesn't exist |
35 | 35 | * @throws IOException When copy fails |
36 | + * @return void |
|
36 | 37 | */ |
37 | 38 | public function copy($originFile, $targetFile, $override = false); |
38 | 39 | |
@@ -43,13 +44,14 @@ discard block |
||
43 | 44 | * @param int $mode The directory mode |
44 | 45 | * |
45 | 46 | * @throws IOException On any directory creation failure |
47 | + * @return void |
|
46 | 48 | */ |
47 | 49 | public function mkdir($dirs, $mode = 0777); |
48 | 50 | |
49 | 51 | /** |
50 | 52 | * Checks the existence of files or directories. |
51 | 53 | * |
52 | - * @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to check |
|
54 | + * @param string $files A filename, an array of files, or a \Traversable instance to check |
|
53 | 55 | * |
54 | 56 | * @return bool true if the file exists, false otherwise |
55 | 57 | */ |
@@ -63,6 +65,7 @@ discard block |
||
63 | 65 | * @param int $atime The access time as a Unix timestamp |
64 | 66 | * |
65 | 67 | * @throws IOException When touch fails |
68 | + * @return void |
|
66 | 69 | */ |
67 | 70 | public function touch($files, $time = null, $atime = null); |
68 | 71 | |
@@ -72,6 +75,7 @@ discard block |
||
72 | 75 | * @param string|array|\Traversable $files A filename, an array of files, or a \Traversable instance to remove |
73 | 76 | * |
74 | 77 | * @throws IOException When removal fails |
78 | + * @return void |
|
75 | 79 | */ |
76 | 80 | public function remove($files); |
77 | 81 | |
@@ -84,6 +88,7 @@ discard block |
||
84 | 88 | * @param bool $recursive Whether change the mod recursively or not |
85 | 89 | * |
86 | 90 | * @throws IOException When the change fail |
91 | + * @return void |
|
87 | 92 | */ |
88 | 93 | public function chmod($files, $mode, $umask = 0000, $recursive = false); |
89 | 94 | |
@@ -95,6 +100,7 @@ discard block |
||
95 | 100 | * @param bool $recursive Whether change the owner recursively or not |
96 | 101 | * |
97 | 102 | * @throws IOException When the change fail |
103 | + * @return void |
|
98 | 104 | */ |
99 | 105 | public function chown($files, $user, $recursive = false); |
100 | 106 | |
@@ -106,6 +112,7 @@ discard block |
||
106 | 112 | * @param bool $recursive Whether change the group recursively or not |
107 | 113 | * |
108 | 114 | * @throws IOException When the change fail |
115 | + * @return void |
|
109 | 116 | */ |
110 | 117 | public function chgrp($files, $group, $recursive = false); |
111 | 118 | |
@@ -118,6 +125,7 @@ discard block |
||
118 | 125 | * |
119 | 126 | * @throws IOException When target file or directory already exists |
120 | 127 | * @throws IOException When origin cannot be renamed |
128 | + * @return void |
|
121 | 129 | */ |
122 | 130 | public function rename($origin, $target, $overwrite = false); |
123 | 131 | |
@@ -129,6 +137,7 @@ discard block |
||
129 | 137 | * @param bool $copyOnWindows Whether to copy files if on Windows |
130 | 138 | * |
131 | 139 | * @throws IOException When symlink fails |
140 | + * @return void |
|
132 | 141 | */ |
133 | 142 | public function symlink($originDir, $targetDir, $copyOnWindows = false); |
134 | 143 | |
@@ -145,6 +154,7 @@ discard block |
||
145 | 154 | * - $options['delete'] Whether to delete files that are not in the source directory (defaults to false) |
146 | 155 | * |
147 | 156 | * @throws IOException When file type is unknown |
157 | + * @return void |
|
148 | 158 | */ |
149 | 159 | public function mirror($originDir, $targetDir, \Traversable $iterator = null, $options = []); |
150 | 160 |
@@ -9,7 +9,7 @@ |
||
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\Filesystem; |
15 | 15 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | - * @param array $themes |
|
40 | + * @param ThemeInterface[] $themes |
|
41 | 41 | * |
42 | 42 | * @return array |
43 | 43 | */ |
@@ -9,7 +9,7 @@ |
||
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\Loader; |
15 | 15 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | } |
29 | 29 | |
30 | 30 | /** |
31 | - * @return array |
|
31 | + * @return string[] |
|
32 | 32 | */ |
33 | 33 | protected function getTranslationsLines() |
34 | 34 | { |
@@ -9,7 +9,7 @@ |
||
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\Tests\Functional; |
15 | 15 |