SecurityCheckExtension   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 25
c 1
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A attempt() 0 4 1
A check() 0 4 1
1
<?php namespace Anomaly\UsersModule\User\Security;
2
3
use Anomaly\Streams\Platform\Addon\Extension\Extension;
4
use Anomaly\UsersModule\User\Contract\UserInterface;
5
use Anomaly\UsersModule\User\Security\Contract\SecurityCheckInterface;
6
use Symfony\Component\HttpFoundation\Response;
7
8
/**
9
 * Class SecurityCheckExtension
10
 *
11
 * @link          http://pyrocms.com/
12
 * @author        PyroCMS, Inc. <[email protected]>
13
 * @author        Ryan Thompson <[email protected]>
14
 */
15
class SecurityCheckExtension extends Extension implements SecurityCheckInterface
16
{
17
18
    /**
19
     * Check a login attempt.
20
     *
21
     * @return bool|Response
22
     */
23
    public function attempt()
24
    {
25
        return true;
26
    }
27
28
    /**
29
     * Check an HTTP request.
30
     *
31
     * @param  UserInterface $user
32
     * @return bool|Response
33
     */
34
    public function check(UserInterface $user = null)
35
    {
36
        return true;
37
    }
38
39
}
40