Passed
Push — 4.1.1 ( 01ed8a )
by Robbie
09:45
created

ControllerNotSecured   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A Link() 0 3 1
1
<?php
2
3
namespace SilverStripe\Security\Tests\BasicAuthTest;
4
5
use SilverStripe\Control\Controller;
6
use SilverStripe\Dev\TestOnly;
7
8
/**
9
 * @skipUpgrade
10
 */
11
class ControllerNotSecured extends Controller implements TestOnly
12
{
13
    protected $template = 'BlankPage';
14
15
    /**
16
     * Disable legacy global-enable
17
     *
18
     * @deprecated 4.0..5.0
19
     * @var bool
20
     */
21
    protected $basicAuthEnabled = false;
22
23
    public function Link($action = null)
24
    {
25
        return Controller::join_links('BasicAuthTest_ControllerNotSecured', $action, '/');
26
    }
27
}
28