Passed
Push — master ( a7fc76...b60484 )
by Jan
03:34 queued 35s
created
src/Services/PermissionResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     {
56 56
         //Read the permission config file...
57 57
         $config = Yaml::parse(
58
-            file_get_contents(__DIR__ . '/../../config/permissions.yaml')
58
+            file_get_contents(__DIR__.'/../../config/permissions.yaml')
59 59
         );
60 60
 
61 61
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
         }
122 122
 
123 123
         $parent = $user->getGroup();
124
-        while($parent != null){ //The top group, has parent == null
124
+        while ($parent != null) { //The top group, has parent == null
125 125
             //Check if our current element gives a info about disallow/allow
126 126
             $allowed = $this->dontInherit($parent, $permission, $operation);
127 127
             if ($allowed !== null) {
Please login to merge, or discard this patch.
src/Entity/Group.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
      */
74 74
     public function getIDString(): string
75 75
     {
76
-        return 'G' . sprintf('%06d', $this->getID());
76
+        return 'G'.sprintf('%06d', $this->getID());
77 77
     }
78 78
 
79 79
     public function getPermissions(): PermissionsEmbed
Please login to merge, or discard this patch.
src/Entity/PermissionsEmbed.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -283,9 +283,9 @@  discard block
 block discarded – undo
283 283
     public function getPermissionValue(string $permission_name, int $bit_n) : ?bool
284 284
     {
285 285
         $value = $this->getBitValue($permission_name, $bit_n);
286
-        if($value == self::ALLOW) {
286
+        if ($value == self::ALLOW) {
287 287
             return true;
288
-        } elseif($value == self::DISALLOW) {
288
+        } elseif ($value == self::DISALLOW) {
289 289
             return false;
290 290
         } else {
291 291
             return null;
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      */
301 301
     final protected static function readBitPair(int $data, int $n): int
302 302
     {
303
-        Assert::lessThanEq($n,31, '$n must be smaller than 32, because only a 32bit int is used! Got %s.');
303
+        Assert::lessThanEq($n, 31, '$n must be smaller than 32, because only a 32bit int is used! Got %s.');
304 304
         if ($n % 2 !== 0) {
305 305
             throw new \InvalidArgumentException('$n must be dividable by 2, because we address bit pairs here!');
306 306
         }
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
      */
319 319
     final protected static function writeBitPair(int $data, int $n, int $new) : int
320 320
     {
321
-        Assert::lessThanEq($n,31, '$n must be smaller than 32, because only a 32bit int is used! Got %s.');
321
+        Assert::lessThanEq($n, 31, '$n must be smaller than 32, because only a 32bit int is used! Got %s.');
322 322
         Assert::lessThanEq($new, 3, '$new must be smaller than 3, because a bit pair is written! Got %s.');
323 323
 
324 324
         if ($n % 2 !== 0) {
Please login to merge, or discard this patch.
src/Security/Voter/PartVoter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
             return false;
52 52
         }
53 53
 
54
-        if($subject instanceof Part) {
54
+        if ($subject instanceof Part) {
55 55
             //Null concealing operator means, that no
56 56
             return $this->resolver->inherit($user, 'parts', $attribute) ?? false;
57 57
         }
Please login to merge, or discard this patch.