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

VcSiteReviews::vcShortcodeSettings()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 93
Code Lines 75

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 75
c 1
b 0
f 1
dl 0
loc 93
rs 8.5454
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\Modules\Rating;
6
use GeminiLabs\SiteReviews\Shortcodes\SiteReviewsShortcode;
7
8
class VcSiteReviews extends VcShortcode
9
{
10
    public static function vcShortcodeClass(): string
11
    {
12
        return SiteReviewsShortcode::class;
13
    }
14
15
    public static function vcShortcodeIcon(): string
16
    {
17
        return glsr()->url('assets/images/icons/wpbakery/icon-reviews.svg');
18
    }
19
}
20