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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 17
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A groupMap() 0 10 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
}