Module   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 12
ccs 0
cts 7
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getConfig() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace TMV\HTTPlugModule;
6
7
/**
8
 * @psalm-api
9
 */
10
class Module
11
{
12
    /**
13
     * @return array<string, mixed>
14
     */
15
    public function getConfig(): array
16
    {
17
        $config = (new ConfigProvider())();
18
        $config['service_manager'] = $config['dependencies'];
19
        unset($config['dependencies']);
20
21
        return $config;
22
    }
23
}
24