Passed
Push — master ( ba460f...5be854 )
by Robbie
01:56 queued 10s
created

TestController::index()   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 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace TractorCow\Fluent\Tests\Extension\FluentDirectorExtensionTest;
4
5
use SilverStripe\Control\Controller;
6
use SilverStripe\Dev\TestOnly;
7
use TractorCow\Fluent\Model\Locale;
8
use TractorCow\Fluent\State\FluentState;
9
10
class TestController extends Controller implements TestOnly
11
{
12
    private static $url_segment = 'TestController';
0 ignored issues
show
introduced by
The private property $url_segment is not used, and could be removed.
Loading history...
13
14
    public function index()
15
    {
16
        return 'Test Controller! ' . FluentState::singleton()->getLocale();
17
    }
18
19
    public function Link($action = null)
20
    {
21
        return Controller::join_links('nouvelle-zélande', parent::Link($action));
22
    }
23
}
24