Passed
Push — master ( 817cab...57b58d )
by Paul
09:30 queued 02:21
created

SiteReviewsSummaryShortcode   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 10
ccs 6
cts 6
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A hideOptions() 0 8 1
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Shortcodes;
4
5
class SiteReviewsSummaryShortcode extends Shortcode
6
{
7 7
    protected function hideOptions()
8
    {
9
        return [
10 7
            'rating' => _x('Hide the rating', 'admin-text', 'site-reviews'),
11 7
            'stars' => _x('Hide the stars', 'admin-text', 'site-reviews'),
12 7
            'summary' => _x('Hide the summary', 'admin-text', 'site-reviews'),
13 7
            'bars' => _x('Hide the percentage bars', 'admin-text', 'site-reviews'),
14 7
            'if_empty' => _x('Hide if no reviews are found', 'admin-text', 'site-reviews'),
15
        ];
16
    }
17
}
18