Test Failed
Push — develop ( 6c74c3...4ba53a )
by Paul
08:25
created

VcSiteReviewsForm::vcShortcodeSettings()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 63
Code Lines 51

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 51
dl 0
loc 63
rs 9.069
c 1
b 0
f 1
cc 1
nc 1
nop 0

How to fix   Long Method   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
3
namespace GeminiLabs\SiteReviews\Integrations\WPBakery;
4
5
use GeminiLabs\SiteReviews\Shortcodes\SiteReviewsFormShortcode;
6
7
class VcSiteReviewsForm extends VcShortcode
8
{
9
    public static function vcShortcodeClass(): string
10
    {
11
        return SiteReviewsFormShortcode::class;
12
    }
13
14
    public static function vcShortcodeIcon(): string
15
    {
16
        return glsr()->url('assets/images/icons/wpbakery/icon-form.svg');
17
    }
18
}
19