Passed
Push — master ( 782e2b...0f3ba9 )
by Jan
02:56
created
src/Twig/AppExtension.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,9 @@
 block discarded – undo
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()) {
Please login to merge, or discard this patch.
src/Security/Voter/UserVoter.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,8 +77,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.