Passed
Push — master ( 8e7e6d...9f9e2a )
by Dispositif
03:39
created

NullStats   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 2
eloc 3
c 1
b 0
f 1
dl 0
loc 10
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A increment() 0 3 1
A __call() 0 3 1
1
<?php
2
/*
3
 * This file is part of dispositif/wikibot application (@github)
4
 * 2019-2023 © Philippe M./Irønie  <[email protected]>
5
 * For the full copyright and MIT license information, view the license file.
6
 */
7
8
declare(strict_types=1);
9
10
namespace App\Infrastructure\Monitor;
11
12
class NullStats implements StatsInterface
13
{
14
    public function increment(string $tag): bool
15
    {
16
        return false;
17
    }
18
19
    public function __call(string $method, array $args)
20
    {
21
        return false;
22
    }
23
}