| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | protected function widgetConfig(): array |
||
| 16 | { |
||
| 17 | return [ |
||
| 18 | 'post_id' => [ |
||
| 19 | 'label' => esc_html_x('Review ID', 'admin-text', 'site-reviews'), |
||
| 20 | 'description' => esc_html_x('Enter the Post ID of the review you want to display.', 'admin-text', 'site-reviews'), |
||
| 21 | 'type' => 'text', |
||
| 22 | ], |
||
| 23 | 'hide' => [ |
||
| 24 | 'options' => $this->shortcode()->getHideOptions(), |
||
| 25 | 'type' => 'checkbox', |
||
| 26 | ], |
||
| 27 | 'id' => [ |
||
| 28 | 'label' => esc_html_x('Custom ID', 'admin-text', 'site-reviews'), |
||
| 29 | 'description' => esc_html_x('This should be a unique value.', 'admin-text', 'site-reviews'), |
||
| 30 | 'type' => 'text', |
||
| 31 | ], |
||
| 32 | 'class' => [ |
||
| 33 | 'label' => esc_html_x('Additional CSS classes', 'admin-text', 'site-reviews'), |
||
| 34 | 'description' => esc_html_x('Separate multiple classes with spaces.', 'admin-text', 'site-reviews'), |
||
| 35 | 'type' => 'text', |
||
| 36 | ], |
||
| 40 |