ContentControllerTest_PageController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A second_index() 0 3 1
A index() 0 3 1
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