GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 73ed41...7294ea )
by Daniel
01:23 queued 11s
created

TextBlock   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A render() 0 4 1
1
<?php
2
3
namespace Chadanuk\MiniCms\Blocks;
4
5
use Illuminate\Mail\Markdown;
6
use Chadanuk\MiniCms\Blocks\BlockTypeAbstract;
7
use Chadanuk\MiniCms\Contracts\BlockTypeContract;
8
use Chadanuk\MiniCms\Blocks\CreatesBlockFromContent;
9
10
class TextBlock extends BlockTypeAbstract implements BlockTypeContract
11
{
12
    use CreatesBlockFromContent;
13
14
    protected static $blockType = 'text';
15
16
    public function render()
17
    {
18
        return nl2br($this->blockContent->content);
19
    }
20
}
21