@@ -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\Component\Taxonomy\Repository; |
| 15 | 15 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | * |
| 32 | 32 | * @return array|TaxonInterface[] |
| 33 | 33 | */ |
| 34 | - public function findChildren(string $parentCode, ?string $locale = null): array; |
|
| 34 | + public function findChildren(string $parentCode, ?string $locale = null) : array; |
|
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * @return array|TaxonInterface[] |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | * |
| 61 | 61 | * @return array|TaxonInterface[] |
| 62 | 62 | */ |
| 63 | - public function findByNamePart(string $phrase, ?string $locale = null): array; |
|
| 63 | + public function findByNamePart(string $phrase, ?string $locale = null) : array; |
|
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | 66 | * @return QueryBuilder |
@@ -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\Component\Taxonomy\Generator; |
| 15 | 15 | |
@@ -23,5 +23,5 @@ discard block |
||
| 23 | 23 | * |
| 24 | 24 | * @return string |
| 25 | 25 | */ |
| 26 | - public function generate(TaxonInterface $taxon, ?string $locale = null): string; |
|
| 26 | + public function generate(TaxonInterface $taxon, ?string $locale = null) : string; |
|
| 27 | 27 | } |
@@ -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\Component\Taxonomy\Generator; |
| 15 | 15 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * {@inheritdoc} |
| 24 | 24 | */ |
| 25 | - public function generate(TaxonInterface $taxon, ?string $locale = null): string |
|
| 25 | + public function generate(TaxonInterface $taxon, ?string $locale = null) : string |
|
| 26 | 26 | { |
| 27 | 27 | $name = $taxon->getTranslation($locale)->getName(); |
| 28 | 28 | |
@@ -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\Component\Taxonomy\Model; |
| 15 | 15 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | /** |
| 107 | 107 | * {@inheritdoc} |
| 108 | 108 | */ |
| 109 | - public function setCode(?string $code): void |
|
| 109 | + public function setCode(?string $code) : void |
|
| 110 | 110 | { |
| 111 | 111 | $this->code = $code; |
| 112 | 112 | } |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | /** |
| 139 | 139 | * {@inheritdoc} |
| 140 | 140 | */ |
| 141 | - public function setParent(?TaxonInterface $parent): void |
|
| 141 | + public function setParent(?TaxonInterface $parent) : void |
|
| 142 | 142 | { |
| 143 | 143 | $this->parent = $parent; |
| 144 | 144 | if (null !== $parent) { |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | /** |
| 208 | 208 | * {@inheritdoc} |
| 209 | 209 | */ |
| 210 | - public function setName(?string $name): void |
|
| 210 | + public function setName(?string $name) : void |
|
| 211 | 211 | { |
| 212 | 212 | $this->getTranslation()->setName($name); |
| 213 | 213 | } |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | /** |
| 224 | 224 | * {@inheritdoc} |
| 225 | 225 | */ |
| 226 | - public function setSlug(?string $slug): void |
|
| 226 | + public function setSlug(?string $slug) : void |
|
| 227 | 227 | { |
| 228 | 228 | $this->getTranslation()->setSlug($slug); |
| 229 | 229 | } |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | /** |
| 240 | 240 | * {@inheritdoc} |
| 241 | 241 | */ |
| 242 | - public function setDescription(?string $description): void |
|
| 242 | + public function setDescription(?string $description) : void |
|
| 243 | 243 | { |
| 244 | 244 | $this->getTranslation()->setDescription($description); |
| 245 | 245 | } |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | /** |
| 256 | 256 | * {@inheritdoc} |
| 257 | 257 | */ |
| 258 | - public function setLeft(?int $left): void |
|
| 258 | + public function setLeft(?int $left) : void |
|
| 259 | 259 | { |
| 260 | 260 | $this->left = $left; |
| 261 | 261 | } |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | /** |
| 272 | 272 | * {@inheritdoc} |
| 273 | 273 | */ |
| 274 | - public function setRight(?int $right): void |
|
| 274 | + public function setRight(?int $right) : void |
|
| 275 | 275 | { |
| 276 | 276 | $this->right = $right; |
| 277 | 277 | } |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | /** |
| 288 | 288 | * {@inheritdoc} |
| 289 | 289 | */ |
| 290 | - public function setLevel(?int $level): void |
|
| 290 | + public function setLevel(?int $level) : void |
|
| 291 | 291 | { |
| 292 | 292 | $this->level = $level; |
| 293 | 293 | } |
@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | /** |
| 304 | 304 | * {@inheritdoc} |
| 305 | 305 | */ |
| 306 | - public function setPosition(?int $position): void |
|
| 306 | + public function setPosition(?int $position) : void |
|
| 307 | 307 | { |
| 308 | 308 | $this->position = $position; |
| 309 | 309 | } |
@@ -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\Component\Taxonomy\Model; |
| 15 | 15 | |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | /** |
| 43 | 43 | * @param TaxonInterface|null $taxon |
| 44 | 44 | */ |
| 45 | - public function setParent(?TaxonInterface $taxon): void; |
|
| 45 | + public function setParent(?TaxonInterface $taxon) : void; |
|
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | 48 | * @return Collection|TaxonInterface[] |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | /** |
| 80 | 80 | * @param string|null $name |
| 81 | 81 | */ |
| 82 | - public function setName(?string $name): void; |
|
| 82 | + public function setName(?string $name) : void; |
|
| 83 | 83 | |
| 84 | 84 | /** |
| 85 | 85 | * @return string|null |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | /** |
| 90 | 90 | * @param string|null $description |
| 91 | 91 | */ |
| 92 | - public function setDescription(?string $description): void; |
|
| 92 | + public function setDescription(?string $description) : void; |
|
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | 95 | * @return int|null |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | /** |
| 100 | 100 | * @param int|null $left |
| 101 | 101 | */ |
| 102 | - public function setLeft(?int $left): void; |
|
| 102 | + public function setLeft(?int $left) : void; |
|
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | 105 | * @return int|null |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | /** |
| 110 | 110 | * @param int|null $right |
| 111 | 111 | */ |
| 112 | - public function setRight(?int $right): void; |
|
| 112 | + public function setRight(?int $right) : void; |
|
| 113 | 113 | |
| 114 | 114 | /** |
| 115 | 115 | * @return int|null |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | /** |
| 120 | 120 | * @param int|null $level |
| 121 | 121 | */ |
| 122 | - public function setLevel(?int $level): void; |
|
| 122 | + public function setLevel(?int $level) : void; |
|
| 123 | 123 | |
| 124 | 124 | /** |
| 125 | 125 | * @return int|null |
@@ -129,5 +129,5 @@ discard block |
||
| 129 | 129 | /** |
| 130 | 130 | * @param int|null $position |
| 131 | 131 | */ |
| 132 | - public function setPosition(?int $position): void; |
|
| 132 | + public function setPosition(?int $position) : void; |
|
| 133 | 133 | } |
@@ -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\Component\Taxonomy\Model; |
| 15 | 15 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | /** |
| 68 | 68 | * {@inheritdoc} |
| 69 | 69 | */ |
| 70 | - public function setName(?string $name): void |
|
| 70 | + public function setName(?string $name) : void |
|
| 71 | 71 | { |
| 72 | 72 | $this->name = $name; |
| 73 | 73 | } |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | /** |
| 84 | 84 | * {@inheritdoc} |
| 85 | 85 | */ |
| 86 | - public function setSlug(?string $slug): void |
|
| 86 | + public function setSlug(?string $slug) : void |
|
| 87 | 87 | { |
| 88 | 88 | $this->slug = $slug; |
| 89 | 89 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | /** |
| 100 | 100 | * {@inheritdoc} |
| 101 | 101 | */ |
| 102 | - public function setDescription(?string $description): void |
|
| 102 | + public function setDescription(?string $description) : void |
|
| 103 | 103 | { |
| 104 | 104 | $this->description = $description; |
| 105 | 105 | } |
@@ -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\Component\Taxonomy\Model; |
| 15 | 15 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | /** |
| 31 | 31 | * @param string|null $name |
| 32 | 32 | */ |
| 33 | - public function setName(?string $name): void; |
|
| 33 | + public function setName(?string $name) : void; |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @return string|null |
@@ -40,5 +40,5 @@ discard block |
||
| 40 | 40 | /** |
| 41 | 41 | * @param string|null $description |
| 42 | 42 | */ |
| 43 | - public function setDescription(?string $description): void; |
|
| 43 | + public function setDescription(?string $description) : void; |
|
| 44 | 44 | } |
@@ -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\Component\Promotion\Generator; |
| 15 | 15 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * @param int|null $amount |
| 28 | 28 | */ |
| 29 | - public function setAmount(?int $amount): void; |
|
| 29 | + public function setAmount(?int $amount) : void; |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * @return int|null |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * @param int|null $codeLength |
| 38 | 38 | */ |
| 39 | - public function setCodeLength(?int $codeLength): void; |
|
| 39 | + public function setCodeLength(?int $codeLength) : void; |
|
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * @return \DateTimeInterface|null |
@@ -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\Component\Promotion\Generator; |
| 15 | 15 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | /** |
| 50 | 50 | * {@inheritdoc} |
| 51 | 51 | */ |
| 52 | - public function setAmount(?int $amount): void |
|
| 52 | + public function setAmount(?int $amount) : void |
|
| 53 | 53 | { |
| 54 | 54 | $this->amount = $amount; |
| 55 | 55 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * {@inheritdoc} |
| 67 | 67 | */ |
| 68 | - public function setCodeLength(?int $codeLength): void |
|
| 68 | + public function setCodeLength(?int $codeLength) : void |
|
| 69 | 69 | { |
| 70 | 70 | $this->codeLength = $codeLength; |
| 71 | 71 | } |