Test Failed
Push — develop ( 444e5e...4db3e8 )
by Paul
07:08
created

SiteReviewBlock::render()   A

Complexity

Conditions 5
Paths 4

Size

Total Lines 17
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 30

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 17
ccs 0
cts 16
cp 0
rs 9.6111
c 0
b 0
f 0
cc 5
nc 4
nop 1
crap 30
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Blocks;
4
5
use GeminiLabs\SiteReviews\Contracts\ShortcodeContract;
6
use GeminiLabs\SiteReviews\Shortcodes\SiteReviewShortcode;
7
8
class SiteReviewBlock extends SiteReviewsBlock
9
{
10
    public function shortcode(): ShortcodeContract
11
    {
12
        return glsr(SiteReviewShortcode::class);
1 ignored issue
show
Bug Best Practice introduced by
The expression return glsr(GeminiLabs\S...ReviewShortcode::class) could return the type callable which is incompatible with the type-hinted return GeminiLabs\SiteReviews\Contracts\ShortcodeContract. Consider adding an additional type-check to rule them out.
Loading history...
13
    }
14
}
15