Total Complexity | 6 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class File implements StorageInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var array |
||
13 | */ |
||
14 | protected $params = []; |
||
15 | |||
16 | /** |
||
17 | * @param array $params |
||
18 | */ |
||
19 | 17 | public function __construct(array $params) |
|
22 | 17 | } |
|
23 | |||
24 | /** |
||
25 | * @param string $message |
||
26 | * @param string $level |
||
27 | * @throws LogException |
||
28 | * @return $this |
||
29 | */ |
||
30 | 15 | public function store(string $message, string $level): StorageInterface |
|
56 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
integer
values, zero is a special case, in particular the following results might be unexpected: