Completed
Pull Request — master (#63)
by Franco
09:30
created

MultiFormTestController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A Form() 0 5 1
1
<?php
2
3
namespace SilverStripe\MultiForm\Tests;
4
5
use SilverStripe\Control\Controller;
6
use SilverStripe\Core\Injector\Injector;
7
use SilverStripe\Dev\TestOnly;
8
9
/**
10
 * @package multiform
11
 * @subpackage tests
12
 */
13
class MultiFormTestController extends Controller implements TestOnly
14
{
15
    private static $url_segment = 'MultiFormTestController';
0 ignored issues
show
Unused Code introduced by
The property $url_segment is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
16
17
    public function Form()
18
    {
19
        return Injector::inst()->get(MultiFormTestForm::class, false, [$this, 'Form'])
20
            ->setHTMLID(MultiFormTestForm::class);
21
    }
22
}
23