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.
Passed
Push — master ( b2510c...ee0bb8 )
by
unknown
12:46
created

Cancel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 42.86%

Importance

Changes 0
Metric Value
dl 0
loc 20
c 0
b 0
f 0
ccs 3
cts 7
cp 0.4286
rs 10
wmc 2
lcom 0
cbo 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A initialize() 0 5 1
1
<?php
2
3
namespace SleepingOwl\Admin\Form\Buttons;
4
5
/**
6
 * Class Cancel.
7
 */
8
class Cancel extends FormButton
9
{
10
    protected $show = true;
11
    protected $name = 'cancel';
12
    protected $iconClass = 'fa-ban';
13
14 10
    public function __construct()
15
    {
16 10
        $this->setText(trans('sleeping_owl::lang.table.cancel'));
17 10
    }
18
19
    /**
20
     * Init Cancel Button.
21
     */
22
    public function initialize()
23
    {
24
        parent::initialize();
25
        $this->setUrl($this->getModelConfiguration()->getDisplayUrl());
26
    }
27
}
28