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.
Passed
Push — master ( 5cefd1...492078 )
by Anton
04:08
created

Listener::onBar()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php declare(strict_types=1);
2
3
/*
4
 * This file is part of Evenement.
5
 *
6
 * (c) Igor Wiedler <[email protected]>
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
namespace Evenement\Tests;
13
14
class Listener
15
{
16
    private $data = [];
17
18
    private $magicData = [];
19
20
    private static $staticData = [];
21
22
    public function onFoo($data)
23
    {
24
        $this->data[] = $data;
25
    }
26
27
    public function __invoke($data)
28
    {
29
        $this->magicData[] = $data;
30
    }
31
32
    public static function onBar($data)
33
    {
34
        self::$staticData[] = $data;
35
    }
36
37
    public function getData()
38
    {
39
        return $this->data;
40
    }
41
42
    public function getMagicData()
43
    {
44
        return $this->magicData;
45
    }
46
47
    public static function getStaticData()
48
    {
49
        return self::$staticData;
50
    }
51
}
52