Completed
Push — master ( c67627...281a84 )
by Odiseo
03:37
created
src/Model/Vendor.php 1 patch
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -150,8 +150,9 @@  discard block
 block discarded – undo
150 150
      */
151 151
     public function addChannel(ChannelInterface $channel)
152 152
     {
153
-        if(!$this->channels->contains($channel))
154
-            $this->channels->add($channel);
153
+        if(!$this->channels->contains($channel)) {
154
+                    $this->channels->add($channel);
155
+        }
155 156
     }
156 157
 
157 158
     /**
@@ -159,8 +160,9 @@  discard block
 block discarded – undo
159 160
      */
160 161
     public function removeChannel(ChannelInterface $channel)
161 162
     {
162
-        if($this->channels->contains($channel))
163
-            $this->channels->removeElement($channel);
163
+        if($this->channels->contains($channel)) {
164
+                    $this->channels->removeElement($channel);
165
+        }
164 166
     }
165 167
 
166 168
     /**
@@ -184,8 +186,9 @@  discard block
 block discarded – undo
184 186
      */
185 187
     public function addProduct(ProductInterface $product)
186 188
     {
187
-        if(!$this->products->contains($product))
188
-            $this->products->add($product);
189
+        if(!$this->products->contains($product)) {
190
+                    $this->products->add($product);
191
+        }
189 192
     }
190 193
 
191 194
     /**
@@ -193,8 +196,9 @@  discard block
 block discarded – undo
193 196
      */
194 197
     public function removeProduct(ProductInterface $product)
195 198
     {
196
-        if($this->products->contains($product))
197
-            $this->products->removeElement($product);
199
+        if($this->products->contains($product)) {
200
+                    $this->products->removeElement($product);
201
+        }
198 202
     }
199 203
 
200 204
     /**
Please login to merge, or discard this patch.