@@ -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; |