Passed
Push — master ( 0d121e...0aebca )
by Henri
01:29
created

User   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 3
c 1
b 0
f 1
dl 0
loc 6
rs 10
wmc 2
1
<?php
2
3
namespace HnrAzevedo\Filter;
4
5
class User extends Filter{
6
7
    public function user_in(): bool
8
    {
9
        $this->addMessage('user_in','User required to be logged in.');
10
11
        $this->addTreat('user_in','report_notLogged');
12
13
        return (array_key_exists('user',$_SESSION));
14
    }
15
16
    public function report_notLogged(): void
17
    {
18
19
    }
20
21
}