@@ -248,7 +248,6 @@ |
||
248 | 248 | * Set the supplier ID |
249 | 249 | * |
250 | 250 | * @param integer $new_supplier_id the ID of the new supplier |
251 | - |
|
252 | 251 | */ |
253 | 252 | public function setSupplierId(int $new_supplier_id) : self |
254 | 253 | { |
@@ -191,7 +191,6 @@ |
||
191 | 191 | * @param string $new_email_address the new e-mail address |
192 | 192 | * |
193 | 193 | * @return self |
194 | - |
|
195 | 194 | */ |
196 | 195 | public function setEmailAddress(string $new_email_address) : self |
197 | 196 | { |
@@ -75,7 +75,9 @@ |
||
75 | 75 | |
76 | 76 | public function parseBBCode(string $bbcode) : string |
77 | 77 | { |
78 | - if($bbcode === '') return ''; |
|
78 | + if($bbcode === '') { |
|
79 | + return ''; |
|
80 | + } |
|
79 | 81 | |
80 | 82 | $item = $this->cache->getItem('bbcode_' . md5($bbcode)); |
81 | 83 | if(!$item->isHit()) { |
@@ -77,8 +77,9 @@ |
||
77 | 77 | //Then we also need to check the self permission |
78 | 78 | $tmp = $this->resolver->inherit($user, 'self', $attribute) ?? false; |
79 | 79 | //But if the self value is not allowed then use just the user value: |
80 | - if($tmp) |
|
81 | - return $tmp; |
|
80 | + if($tmp) { |
|
81 | + return $tmp; |
|
82 | + } |
|
82 | 83 | } |
83 | 84 | //Else just check users permission: |
84 | 85 | return $this->resolver->inherit($user, 'users', $attribute) ?? false; |