Passed
Push — master ( 36d94c...6f4de6 )
by Sathish
01:39
created

LostPasswordPageController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A LostPasswordForm() 0 9 1
1
<?php
2
namespace UserManagement\Page;
3
4
use PageController;
0 ignored issues
show
Bug introduced by
The type PageController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
5
use SilverStripe\Security\MemberAuthenticator\LostPasswordHandler;
6
use SilverStripe\Security\MemberAuthenticator\LostPasswordForm;
7
8
/**
9
 * Class LostPasswordPageController
10
 *
11
 * @package user-management
12
 */
13
class LostPasswordPageController extends PageController
14
{
15
    private static $url_segment = 'forgotten-password';
0 ignored issues
show
introduced by
The private property $url_segment is not used, and could be removed.
Loading history...
16
17
    private $authenticatorClass = MemberAuthenticator::class;
0 ignored issues
show
Bug introduced by
The type UserManagement\Page\MemberAuthenticator was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
18
19
    private static $allowed_actions = array('LostPasswordForm');
0 ignored issues
show
introduced by
The private property $allowed_actions is not used, and could be removed.
Loading history...
20
21
    public function LostPasswordForm()
22
    {
23
        return LostPasswordForm::create(
24
            LostPasswordHandler::create('/Security/lostpassword/'),
25
            $this->authenticatorClass,
26
            'lostPasswordForm',
27
            null,
28
            null,
29
            false
30
        );
31
    }
32
}
33