Completed
Push — master ( 232009...3c190c )
by Robbie
14s
created

LDAPLoginHandler::loginForm()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace SilverStripe\ActiveDirectory\Authenticators;
4
5
use SilverStripe\ActiveDirectory\Forms\LDAPLoginForm;
6
use SilverStripe\Security\MemberAuthenticator\LoginHandler;
7
8
class LDAPLoginHandler extends LoginHandler
9
{
10
    /**
11
     * @var array
12
     * @config
13
     */
14
    private static $allowed_actions = [
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
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...
15
        'LoginForm',
16
    ];
17
18
    public function loginForm()
19
    {
20
        return LDAPLoginForm::create(
21
            $this,
22
            get_class($this->authenticator),
23
            'LoginForm'
24
        );
25
    }
26
}
27