| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function fields(): array |
||
| 20 | { |
||
| 21 | return [ |
||
| 22 | Text::make( |
||
| 23 | trans("nova-ad-director::resource.configuration.{$this->name}.target_key"), |
||
| 24 | 'target_key' |
||
| 25 | ) |
||
| 26 | ->placeholder('Sponsor_Ad_Targets') |
||
| 27 | ->rules('required') |
||
| 28 | ->help(trans("nova-ad-director::resource.configuration.{$this->name}.help_target_key")), |
||
| 29 | Text::make( |
||
| 30 | trans("nova-ad-director::resource.configuration.{$this->name}.target_value"), |
||
| 31 | 'target_value' |
||
| 32 | ) |
||
| 33 | ->placeholder('Sponsor1,Sponsor2') |
||
| 34 | ->rules('required') |
||
| 35 | ->help(trans("nova-ad-director::resource.configuration.{$this->name}.help_target_value")), |
||
| 36 | ]; |
||
| 39 |