Total Complexity | 9 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | class DevAuthenticator extends AbstractGuardAuthenticator |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $storeName; |
||
18 | |||
19 | /** |
||
20 | * @param string $storeName |
||
21 | */ |
||
22 | public function __construct($storeName) |
||
25 | } |
||
26 | |||
27 | public function supports(Request $request) |
||
30 | } |
||
31 | |||
32 | public function getCredentials(Request $request) |
||
33 | { |
||
34 | return [ |
||
35 | 'shop' => $this->storeName, |
||
36 | ]; |
||
37 | } |
||
38 | |||
39 | public function getUser($credentials, UserProviderInterface $userProvider) |
||
40 | { |
||
41 | return $userProvider->loadUserByUsername($credentials['shop']); |
||
42 | } |
||
43 | |||
44 | public function checkCredentials($credentials, UserInterface $user) |
||
45 | { |
||
46 | return true; |
||
47 | } |
||
48 | |||
49 | public function onAuthenticationFailure(Request $request, AuthenticationException $exception) |
||
51 | } |
||
52 | |||
53 | public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey) |
||
54 | { |
||
55 | } |
||
56 | |||
57 | public function supportsRememberMe() |
||
60 | } |
||
61 | |||
62 | public function start(Request $request, AuthenticationException $authException = null) |
||
64 | } |
||
65 | } |
||
66 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths