@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | */ |
274 | 274 | public function getBitValue(string $permission_name, int $bit_n): int |
275 | 275 | { |
276 | - if(!$this->isValidPermissionName($permission_name)) { |
|
276 | + if (!$this->isValidPermissionName($permission_name)) { |
|
277 | 277 | throw new \InvalidArgumentException('No permission with the given name is existing!'); |
278 | 278 | } |
279 | 279 | |
@@ -317,9 +317,9 @@ discard block |
||
317 | 317 | public function setPermissionValue(string $permission_name, int $bit_n, ?bool $new_value) : self |
318 | 318 | { |
319 | 319 | //Determine which bit value the given value is. |
320 | - if($new_value === true) { |
|
320 | + if ($new_value === true) { |
|
321 | 321 | $bit_value = static::ALLOW; |
322 | - } elseif($new_value === false) { |
|
322 | + } elseif ($new_value === false) { |
|
323 | 323 | $bit_value = static::DISALLOW; |
324 | 324 | } else { |
325 | 325 | $bit_value = static::INHERIT; |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | */ |
340 | 340 | public function setBitValue(string $permission_name, int $bit_n, int $new_value) : self |
341 | 341 | { |
342 | - if(!$this->isValidPermissionName($permission_name)) { |
|
342 | + if (!$this->isValidPermissionName($permission_name)) { |
|
343 | 343 | throw new \InvalidArgumentException('No permission with the given name is existing!'); |
344 | 344 | } |
345 | 345 |
@@ -72,7 +72,7 @@ |
||
72 | 72 | |
73 | 73 | ->add('not_selectable', CheckboxType::class, ['required' => false, |
74 | 74 | 'label' => 'not_selectable.label', 'help' => 'not_selectable.help', 'label_attr'=> ['class' => 'checkbox-custom'], |
75 | - 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity) ]) |
|
75 | + 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity)]) |
|
76 | 76 | |
77 | 77 | ->add('comment', CKEditorType::class, ['required' => false, |
78 | 78 | 'label' => 'comment.label', 'attr' => ['rows' => 4], 'help' => 'bbcode.hint', |