Completed
Pull Request — master (#70)
by Daniel
04:09
created

StaticPublisherTestPage::canPublish()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace SilverStripe\StaticPublishQueue\Test\StaticPublisherTest\Model;
4
5
use Page;
6
use SilverStripe\Dev\TestOnly;
7
8
class StaticPublisherTestPage extends Page implements TestOnly
9
{
10
11
    private static $allowed_children = array(
0 ignored issues
show
Unused Code introduced by
The property $allowed_children 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...
12
        StaticPublisherTestPage::class
13
    );
14
15
16
    public function canPublish($member = null)
17
    {
18
        return true;
19
    }
20
21
    public function getTemplate()
22
    {
23
        return STATIC_MODULE_DIR . '/tests/templates/StaticPublisherTestPage.ss';
24
    }
25
}
26