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

SiteReviewsFormShortcode::buildTemplate()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 15
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 12

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 15
ccs 0
cts 12
cp 0
rs 9.8666
c 0
b 0
f 0
cc 3
nc 2
nop 1
crap 12
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