Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
10 | protected function widgetConfig(): array |
||
11 | { |
||
12 | return [ |
||
13 | 'assigned_posts' => [ |
||
14 | 'description' => esc_html_x('Enter "post_id" to use the Post ID of the current page.', 'admin-text', 'site-reviews'), |
||
15 | 'label' => esc_html_x('Assign Reviews to Pages', 'admin-text', 'site-reviews'), |
||
16 | 'type' => 'text', |
||
17 | ], |
||
18 | 'assigned_terms' => [ |
||
19 | 'label' => esc_html_x('Assign Reviews to Categories', 'admin-text', 'site-reviews'), |
||
20 | 'description' => esc_html_x('Enter the Term ID or slug of a category.', 'admin-text', 'site-reviews'), |
||
21 | 'type' => 'text', |
||
22 | ], |
||
23 | 'assigned_users' => [ |
||
24 | 'description' => esc_html_x('Enter "user_id" to use the ID of the logged-in user.', 'admin-text', 'site-reviews'), |
||
25 | 'label' => esc_html_x('Assign Reviews to Users', 'admin-text', 'site-reviews'), |
||
26 | 'type' => 'text', |
||
27 | ], |
||
28 | 'hide' => [ |
||
29 | 'options' => $this->shortcode->options('hide'), |
||
30 | 'type' => 'checkbox', |
||
31 | ], |
||
40 |