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::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 6
rs 9.4285
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
}