Completed
Push — master ( 7b28e1...d5117e )
by Joachim
11:09
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
 
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
     public function hasParentCategory($category) : bool
190 190
     {
191
-        if($category instanceof CategoryInterface) {
191
+        if ($category instanceof CategoryInterface) {
192 192
             $category = $category->getExternalId();
193 193
         }
194 194
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      */
213 213
     public function getId(): int
214 214
     {
215
-        return (int)$this->id;
215
+        return (int) $this->id;
216 216
     }
217 217
 
218 218
     /**
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
      */
231 231
     public function getExternalId(): int
232 232
     {
233
-        return (int)$this->externalId;
233
+        return (int) $this->externalId;
234 234
     }
235 235
 
236 236
     /**
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      */
249 249
     public function getNumber(): string
250 250
     {
251
-        return (string)$this->number;
251
+        return (string) $this->number;
252 252
     }
253 253
 
254 254
     /**
Please login to merge, or discard this patch.