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.
Test Failed
Push — master ( c51706...f968f3 )
by Anton
01:54
created

Logger   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 17
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A log() 0 4 1
1
<?php
2
/* (c) Anton Medvedev <[email protected]>
3
 *
4
 * For the full copyright and license information, please view the LICENSE
5
 * file that was distributed with this source code.
6
 */
7
8
namespace Deployer\Logger;
9
10
use Deployer\Logger\Handler\HandlerInterface;
11
12
class Logger
13
{
14
    /**
15
     * @var HandlerInterface
16
     */
17
    private $handler;
18
19
    public function __construct(HandlerInterface $handler)
20
    {
21
        $this->handler = $handler;
22
    }
23
24
    public function log(string $message)
25
    {
26
        $this->handler->log("$message\n");
27
    }
28
}
29