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.
Failure conditions met
Pushb8268a...b3fdf9
failed — Build
created

TaggedListener   A

↳ Parent: Project

Coupling/Cohesion

Components 1
Dependencies 2

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Test Coverage

Coverage 71.43%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 3
c 1
b 1
f 0
lcom 1
cbo 2
dl 0
loc 33
ccs 5
cts 7
cp 0.7143
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A handle() 0 4 1
A isListener() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of Rocketeer
5
 *
6
 * (c) Maxime Fabre <ehtnam6@gmail.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 */
12
13
namespace Rocketeer\Services\Events\Listeners;
14
15
use League\Event\EventInterface;
16
use League\Event\ListenerInterface;
17
18
/**
19
 * A listener that can be assigned
20
 * a particular tag.
21
 */
22
class TaggedListener implements TaggableListenerInterface
23
{
24
    use TaggableListenerTrait;
25
26
    /**
27
     * @var ListenerInterface
28
     */
29
    protected $listener;
30
31
    /**
32
     * @param ListenerInterface $listener
33
     */
34 6
    public function __construct(ListenerInterface $listener)
35
    {
36 6
        $this->listener = $listener;
37 6
    }
38
39
    /**
40
     * {@inheritdoc}
41
     */
42 6
    public function handle(EventInterface $event)
43
    {
44 6
        return $this->listener->handle($event);
45
    }
46
47
    /**
48
     * {@inheritdoc}
49
     */
50
    public function isListener($listener)
51
    {
52
        return $this->listener->isListener($listener);
53
    }
54
}
55