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

ControllerNotSecured::Link()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
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