GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( ff9256...790680 )
by Dominic
02:34
created

NullClient::__call()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Vend\Statsd;
4
5
/**
6
 * A 'null' client
7
 *
8
 * Useful for where you only sometimes have access to a statsd client; using a NullClient will allow you to
9
 * avoid null-checks in your calling code (just assume, for example, that $this->client->increment() etc. will
10
 * always be available, and default $this->client to an instance of this class)
11
 *
12
 * Because this NullClient can't make assumptions about the factory you'll pass in, the __call method will
13
 * respond to *any* method called on this client.
14
 */
15
class NullClient implements ClientInterface
16
{
17 3
    public function __construct(Socket $socket = null, FactoryInterface $factory = null)
18
    {
19 3
    }
20
21 1
    public function add(MetricInterface $metric)
22
    {
23 1
    }
24
25 1
    public function flush()
26
    {
27 1
    }
28
29
    /**
30
     * @param string $name
31
     * @param array  $arguments
32
     * @return null
33
     */
34 1
    public function __call($name, $arguments)
35
    {
36 1
        return null;
37
    }
38
}
39