bristol-su /
assign-roles
| 1 | <?php |
||||
| 2 | |||||
|
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||||
| 3 | namespace BristolSU\Module\AssignRoles\Fields; |
||||
| 4 | |||||
| 5 | use FormSchema\Schema\Field; |
||||
| 6 | |||||
| 7 | class PositionSettings extends Field |
||||
|
0 ignored issues
–
show
|
|||||
| 8 | { |
||||
| 9 | |||||
| 10 | protected $type = 'assignRolesPositionSettings'; |
||||
| 11 | |||||
| 12 | protected $logic; |
||||
| 13 | |||||
| 14 | protected $positions; |
||||
| 15 | |||||
| 16 | /** |
||||
|
0 ignored issues
–
show
|
|||||
| 17 | * @inheritDoc |
||||
| 18 | */ |
||||
|
0 ignored issues
–
show
|
|||||
| 19 | public function getAppendedAttributes(): array |
||||
| 20 | { |
||||
| 21 | return [ |
||||
| 22 | 'logic' => ($this->logic() ?? []), |
||||
|
0 ignored issues
–
show
The method
logic() does not exist on BristolSU\Module\AssignR...Fields\PositionSettings. Since you implemented __call, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 23 | 'positions' => ($this->positions() ?? []) |
||||
|
0 ignored issues
–
show
The method
positions() does not exist on BristolSU\Module\AssignR...Fields\PositionSettings. Since you implemented __call, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
| 24 | ]; |
||||
| 25 | } |
||||
| 26 | } |