Completed
Pull Request — master (#160)
by Matthew
03:08
created

TestPage   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A setFlexSliderSpeed() 0 7 2
1
<?php
2
3
namespace Dynamic\FlexSlider\Test;
4
5
use Dynamic\FlexSlider\ORM\FlexSlider;
6
use SilverStripe\Dev\TestOnly;
7
8
/**
9
 * Class TestPage
10
 * @package Dynamic\FlexSlider\Tests
11
 */
12
class TestPage extends \Page implements TestOnly
13
{
14
    private static $slide_tab_title = '';
0 ignored issues
show
introduced by
The private property $slide_tab_title is not used, and could be removed.
Loading history...
15
16
    private static $extensions = array(
0 ignored issues
show
introduced by
The private property $extensions is not used, and could be removed.
Loading history...
17
        FlexSlider::class,
18
    );
19
20
    private static $table_name = 'FlexsliderTestPage';
0 ignored issues
show
introduced by
The private property $table_name is not used, and could be removed.
Loading history...
21
22
    public function setFlexSliderSpeed()
23
    {
24
        if (!$this->config()->get('setFlexSliderSpeed')) {
25
            return;
26
        }
27
28
        return 1000;
29
    }
30
}
31