Passed
Branch ss4 (364df2)
by Simon
01:53
created

ControllerExtension::SlackForm()   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 Firesphere\StripeSlack\Extension;
4
5
use Firesphere\StripeSlack\Form\SlackSignupForm;
6
use SilverStripe\CMS\Controllers\ContentController;
7
use SilverStripe\Core\Extension;
8
9
/**
10
 * Class SlackControllerExtension
11
 *
12
 * @property ContentController $owner
13
 */
14
class ControllerExtension extends Extension
15
{
16
    private static $allowed_actions = [
1 ignored issue
show
Unused Code introduced by
The property $allowed_actions 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...
17
        'SlackForm'
18
    ];
19
20
    public function SlackForm()
21
    {
22
        return SlackSignupForm::create($this->owner, __FUNCTION__);
23
    }
24
}
25