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 — master ( d045d2...d7dabc )
by Constantin
02:43
created

GrouperByListener::groupMap()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 5
nc 2
nop 1
crap 2
1
<?php
2
3
4
namespace Gica\CodeAnalysis\MethodListenerDiscovery\MapGrouper;
5
6
7
use Gica\CodeAnalysis\MethodListenerDiscovery\ListenerMethod;
8
9
class GrouperByListener
10
{
11
    /**
12
     * @param ListenerMethod[] $map
13
     * @return array array of ListenerMethod[]
14
     */
15 1
    public function groupMap(array $map)
16
    {
17 1
        $result = [];
18
19 1
        foreach ($map as $listenerMethod) {
20 1
            $result[$listenerMethod->getClassName()][] = $listenerMethod;
21
        }
22
23 1
        return $result;
24
    }
25
}