Everytime   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
dl 0
loc 18
ccs 12
cts 12
cp 1
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A remove() 0 2 1
A process() 0 11 1
1
<?php
2
3
namespace kalanis\kw_auth\Methods;
4
5
6
use kalanis\kw_accounts\Data\FileUser;
7
use kalanis\kw_accounts\Interfaces\IProcessClasses;
8
9
10
/**
11
 * Class Everytime
12
 * @package kalanis\kw_auth\AuthMethods
13
 * Authenticate every time - for debugging purposes
14
 */
15
class Everytime extends AMethods
16
{
17 2
    public function process(\ArrayAccess $credentials): void
18
    {
19 2
        $this->loggedUser = new FileUser();
20 2
        $this->loggedUser->setUserData(
0 ignored issues
show
Bug introduced by
The method setUserData() does not exist on null. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

20
        $this->loggedUser->/** @scrutinizer ignore-call */ 
21
                           setUserData(

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
21 2
            '0',
22 2
            'Debug',
23 2
            '0',
24 2
            IProcessClasses::CLASS_USER,
25 2
            null,
26 2
            'Debug',
27 2
            '/'
28
        );
29 2
    }
30
31 1
    public function remove(): void
32
    {
33 1
    }
34
}
35