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

TestController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

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