Test Failed
Push — hotfix/fix-counts ( 1fe4ce...872cd6 )
by Paul
03:14
created

SiteReviewsSummaryShortcode::hideOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 0
dl 0
loc 7
ccs 6
cts 6
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Shortcodes;
4
5
use GeminiLabs\SiteReviews\Shortcodes\Shortcode;
6
7
class SiteReviewsSummaryShortcode extends Shortcode
8
{
9 1
	protected function hideOptions() {
10
		return [
11 1
			'rating' => __( 'Hide the rating', 'site-reviews' ),
12 1
			'stars' => __( 'Hide the stars', 'site-reviews' ),
13 1
			'summary' => __( 'Hide the summary', 'site-reviews' ),
14 1
			'bars' => __( 'Hide the percentage bars', 'site-reviews' ),
15 1
			'if_empty' => __( 'Hide if no reviews are found', 'site-reviews' ),
16
		];
17
	}
18
}
19