Passed
Push — master ( 64f340...ccb079 )
by Paul
08:17 queued 03:57
created

SiteReviewsFormShortcode   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 11
ccs 7
cts 7
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A hideOptions() 0 9 1
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Shortcodes;
4
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