@@ -222,7 +222,7 @@ |
||
222 | 222 | { |
223 | 223 | $this->logoFile = $file; |
224 | 224 | |
225 | - if($file) |
|
225 | + if ($file) |
|
226 | 226 | { |
227 | 227 | $this->setUpdatedAt(new \DateTime()); |
228 | 228 | } |
@@ -155,8 +155,9 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function addVendor(VendorInterface $vendor) |
32 | 32 | { |
33 | - if(!$this->vendors->contains($vendor)) { |
|
33 | + if (!$this->vendors->contains($vendor)) { |
|
34 | 34 | $this->vendors->add($vendor); |
35 | 35 | } |
36 | 36 | } |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function removeVendor(VendorInterface $vendor) |
42 | 42 | { |
43 | - if($this->vendors->contains($vendor)) { |
|
43 | + if ($this->vendors->contains($vendor)) { |
|
44 | 44 | $this->vendors->removeElement($vendor); |
45 | 45 | } |
46 | 46 | } |