@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | */ |
180 | 180 | public function addParentCategory(CategoryInterface $category) : CategoryInterface |
181 | 181 | { |
182 | - if(!$this->hasParentCategory($category)) { |
|
182 | + if (!$this->hasParentCategory($category)) { |
|
183 | 183 | $this->parentCategories->add($category); |
184 | 184 | } |
185 | 185 | |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | */ |
193 | 193 | public function hasParentCategory($category) : bool |
194 | 194 | { |
195 | - if($category instanceof CategoryInterface) { |
|
195 | + if ($category instanceof CategoryInterface) { |
|
196 | 196 | $category = $category->getExternalId(); |
197 | 197 | } |
198 | 198 | |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | */ |
217 | 217 | public function getId(): int |
218 | 218 | { |
219 | - return (int)$this->id; |
|
219 | + return (int) $this->id; |
|
220 | 220 | } |
221 | 221 | |
222 | 222 | /** |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | */ |
235 | 235 | public function getExternalId(): int |
236 | 236 | { |
237 | - return (int)$this->externalId; |
|
237 | + return (int) $this->externalId; |
|
238 | 238 | } |
239 | 239 | |
240 | 240 | /** |
@@ -252,7 +252,7 @@ discard block |
||
252 | 252 | */ |
253 | 253 | public function getNumber(): string |
254 | 254 | { |
255 | - return (string)$this->number; |
|
255 | + return (string) $this->number; |
|
256 | 256 | } |
257 | 257 | |
258 | 258 | /** |