Completed
Push — master ( 2933de...ffcf9e )
by Odiseo
03:31
created
src/Model/Vendor.php 1 patch
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -155,8 +155,9 @@  discard block
 block discarded – undo
155 155
         if (!$this->channels->contains($channel)) {
156 156
             $this->channels->add($channel);
157 157
 
158
-            if ($channel instanceof VendorsAwareInterface)
159
-                $channel->addVendor($this);
158
+            if ($channel instanceof VendorsAwareInterface) {
159
+                            $channel->addVendor($this);
160
+            }
160 161
         }
161 162
     }
162 163
 
@@ -168,8 +169,9 @@  discard block
 block discarded – undo
168 169
         if ($this->channels->contains($channel)) {
169 170
             $this->channels->removeElement($channel);
170 171
 
171
-            if ($channel instanceof VendorsAwareInterface)
172
-                $channel->removeVendor($this);
172
+            if ($channel instanceof VendorsAwareInterface) {
173
+                            $channel->removeVendor($this);
174
+            }
173 175
         }
174 176
     }
175 177
 
@@ -197,8 +199,9 @@  discard block
 block discarded – undo
197 199
         if (!$this->products->contains($product)) {
198 200
             $this->products->add($product);
199 201
 
200
-            if ($product instanceof VendorsAwareInterface)
201
-                $product->addVendor($this);
202
+            if ($product instanceof VendorsAwareInterface) {
203
+                            $product->addVendor($this);
204
+            }
202 205
         }
203 206
     }
204 207
 
@@ -210,8 +213,9 @@  discard block
 block discarded – undo
210 213
         if ($this->products->contains($product)) {
211 214
             $this->products->removeElement($product);
212 215
 
213
-            if ($product instanceof VendorsAwareInterface)
214
-                $product->removeVendor($this);
216
+            if ($product instanceof VendorsAwareInterface) {
217
+                            $product->removeVendor($this);
218
+            }
215 219
         }
216 220
     }
217 221
 
Please login to merge, or discard this patch.