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 — thruway-0.4 ( 6cdd38...7c8224 )
by Cees-Jan
20:30 queued 10:33
created

ConstructEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 23
rs 10
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 6 1
A getLoop() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of Ratchet.
5
 *
6
 ** (c) 2016 Cees-Jan Kiewiet
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
namespace WyriHaximus\Ratchet\Event;
12
13
use Cake\Event\Event;
14
use React\EventLoop\LoopInterface;
15
16
class ConstructEvent extends Event
17
{
18
    const EVENT = 'WyriHaximus.Ratchet.construct';
19
20
    /**
21
     * @param LoopInterface $loop
22
     * @return static
23
     */
24
    public static function create(LoopInterface $loop)
25
    {
26
        return new static(static::EVENT, $loop, [
27
            'loop' => $loop,
28
        ]);
29
    }
30
31
    /**
32
     * @return LoopInterface
33
     */
34
    public function getLoop()
35
    {
36
        return $this->data()['loop'];
37
    }
38
}