second_index()   A
last analyzed

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 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace SilverStripe\CMS\Tests\Controllers;
4
5
use SilverStripe\CMS\Controllers\ContentController;
6
use SilverStripe\Dev\TestOnly;
7
8
class ContentControllerTest_PageController extends ContentController implements TestOnly
9
{
10
    private static $allowed_actions = [
0 ignored issues
show
introduced by
The private property $allowed_actions is not used, and could be removed.
Loading history...
11
        'second_index',
12
    ];
13
14
    public function index()
15
    {
16
        return $this->Title;
17
    }
18
19
    public function second_index()
20
    {
21
        return $this->index();
22
    }
23
}
24