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   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 10
c 1
b 0
f 0
dl 0
loc 36
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getStaticData() 0 3 1
A __invoke() 0 3 1
A getData() 0 3 1
A onBar() 0 3 1
A onFoo() 0 3 1
A getMagicData() 0 3 1
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