| Total Complexity | 3 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 58.33% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class SiteReviewsFormShortcode extends Shortcode |
||
| 6 | { |
||
| 7 | 1 | protected function hideOptions() |
|
| 8 | { |
||
| 9 | return [ |
||
| 10 | 1 | 'rating' => __('Hide the rating field', 'site-reviews'), |
|
| 11 | 1 | 'title' => __('Hide the title field', 'site-reviews'), |
|
| 12 | 1 | 'content' => __('Hide the review field', 'site-reviews'), |
|
| 13 | 1 | 'name' => __('Hide the name field', 'site-reviews'), |
|
| 14 | 1 | 'email' => __('Hide the email field', 'site-reviews'), |
|
| 15 | 1 | 'terms' => __('Hide the terms field', 'site-reviews'), |
|
| 16 | ]; |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param array|string $atts |
||
| 21 | * @param string $type |
||
| 22 | * @return array |
||
| 23 | */ |
||
| 24 | public function normalizeAtts($atts, $type = 'shortcode') |
||
| 31 | } |
||
| 32 | } |
||
| 33 |