@@ -110,7 +110,6 @@ |
||
110 | 110 | * in the database, you have to pass the "price_related_quantity" count as $multiplier. |
111 | 111 | * |
112 | 112 | * @return float the price as a float number |
113 | - |
|
114 | 113 | */ |
115 | 114 | public function getPricePerUnit(int $multiplier = 1) : float |
116 | 115 | { |
@@ -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 |
@@ -140,7 +140,6 @@ |
||
140 | 140 | |
141 | 141 | /** |
142 | 142 | * Get the comment of the element. |
143 | - |
|
144 | 143 | * @return string the comment |
145 | 144 | */ |
146 | 145 | public function getComment(): ?string |
@@ -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', |