@@ -73,7 +73,7 @@ |
||
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 |
@@ -283,9 +283,9 @@ discard block |
||
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 |
||
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 |
||
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) { |
@@ -51,7 +51,7 @@ |
||
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 | } |