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

SiteReviewsSummaryShortcode::generateSchema()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
dl 0
loc 5
ccs 0
cts 4
cp 0
rs 10
c 1
b 0
f 0
cc 2
nc 2
nop 0
crap 6
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