Completed
Push — master ( d5117e...cfe9c3 )
by Joachim
25:32 queued 10:28
created
src/Entity/Category.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.