Completed
Push — master ( c80938...ad1942 )
by Joachim
14:02
created
src/Entity/Tag.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
     public function addTagValue(TagValue $tagValue) : TagInterface
65 65
     {
66
-        if(!$this->hasTagValue($tagValue)) {
66
+        if (!$this->hasTagValue($tagValue)) {
67 67
             $this->tagValues->add($tagValue);
68 68
             $tagValue->setTag($this);
69 69
         }
@@ -73,11 +73,11 @@  discard block
 block discarded – undo
73 73
 
74 74
     public function hasTagValue($tagValue) : bool
75 75
     {
76
-        if($tagValue instanceof TagValueInterface) {
76
+        if ($tagValue instanceof TagValueInterface) {
77 77
             $tagValue = $tagValue->getExternalId();
78 78
         }
79 79
 
80
-        return $this->tagValues->exists(function ($key, TagValueInterface $element) use ($tagValue) {
80
+        return $this->tagValues->exists(function($key, TagValueInterface $element) use ($tagValue) {
81 81
             return $element->getExternalId() === $tagValue;
82 82
         });
83 83
     }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function getId(): int
106 106
     {
107
-        return (int)$this->id;
107
+        return (int) $this->id;
108 108
     }
109 109
 
110 110
     /**
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     public function getExternalId(): int
124 124
     {
125
-        return (int)$this->externalId;
125
+        return (int) $this->externalId;
126 126
     }
127 127
 
128 128
     /**
Please login to merge, or discard this patch.