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

ControllerExtension   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1
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