NullAuthentication   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A authRequestData() 0 3 1
A authRequestTimeout() 0 3 1
1
<?php
2
3
namespace kalanis\Restful\Security\Process;
4
5
6
use kalanis\Restful\Http\IInput;
7
8
9
/**
10
 * NullAuthentication for non-secured API requests
11
 * @package kalanis\Restful\Security\Process
12
 */
13
class NullAuthentication extends AuthenticationProcess
14
{
15
    /**
16
     * Authenticate request data
17
     */
18
    protected function authRequestData(IInput $input): bool
19
    {
20
        return true;
21
    }
22
23
    /**
24
     * Authenticate request time
25
     */
26
    protected function authRequestTimeout(IInput $input): bool
27
    {
28
        return true;
29
    }
30
}
31