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

SiteReviewsShortcode::hideOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 9
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 9
nc 1
nop 0
dl 0
loc 10
ccs 9
cts 9
cp 1
crap 1
rs 9.9666
c 0
b 0
f 0
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Shortcodes;
4
5
use GeminiLabs\SiteReviews\Shortcodes\Shortcode;
6
7
class SiteReviewsShortcode extends Shortcode
8
{
9 1
	protected function hideOptions() {
10
		return [
11 1
			'title' => __( 'Hide the title', 'site-reviews' ),
12 1
			'rating' => __( 'Hide the rating', 'site-reviews' ),
13 1
			'date' => __( 'Hide the date', 'site-reviews' ),
14 1
			'assigned_to' => __( 'Hide the assigned to link (if shown)', 'site-reviews' ),
15 1
			'content' => __( 'Hide the content', 'site-reviews' ),
16 1
			'avatar' => __( 'Hide the avatar (if shown)', 'site-reviews' ),
17 1
			'author' => __( 'Hide the author', 'site-reviews' ),
18 1
			'response' => __( 'Hide the response', 'site-reviews' ),
19
		];
20
	}
21
}
22