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

SiteReviewsFormShortcode::hideOptions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 7
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 9
ccs 7
cts 7
cp 1
crap 1
rs 10
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Shortcodes;
4
5
class SiteReviewsFormShortcode extends Shortcode
6
{
7 7
    protected function hideOptions()
8
    {
9
        return [
10 7
            'rating' => _x('Hide the rating field', 'admin-text', 'site-reviews'),
11 7
            'title' => _x('Hide the title field', 'admin-text', 'site-reviews'),
12 7
            'content' => _x('Hide the review field', 'admin-text', 'site-reviews'),
13 7
            'name' => _x('Hide the name field', 'admin-text', 'site-reviews'),
14 7
            'email' => _x('Hide the email field', 'admin-text', 'site-reviews'),
15 7
            'terms' => _x('Hide the terms field', 'admin-text', 'site-reviews'),
16
        ];
17
    }
18
}
19