1 | <?php |
||||
2 | |||||
0 ignored issues
–
show
Coding Style
introduced
by
![]() |
|||||
3 | namespace BristolSU\Module\AssignRoles\Fields; |
||||
4 | |||||
5 | use FormSchema\Schema\Field; |
||||
6 | |||||
7 | class RequiredPositions extends Field |
||||
0 ignored issues
–
show
|
|||||
8 | { |
||||
9 | |||||
10 | protected $type = 'assignRolesRequiredPositions'; |
||||
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...ields\RequiredPositions . 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
![]() |
|||||
23 | 'positions' => ($this->positions() ?? []) |
||||
0 ignored issues
–
show
The method
positions() does not exist on BristolSU\Module\AssignR...ields\RequiredPositions . 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
![]() |
|||||
24 | ]; |
||||
25 | } |
||||
26 | } |