ConfigProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace DoctrineORMModule;
6
7
/**
8
 * Config provider for DoctrineORMModule config
9
 */
10
class ConfigProvider
11
{
12
    /**
13
     * @return mixed[]
14
     */
15 1
    public function __invoke() : array
16
    {
17 1
        $config                 = include __DIR__ . '/../../config/module.config.php';
18 1
        $config['dependencies'] = $config['service_manager'];
19 1
        unset($config['service_manager']);
20
21 1
        return $config;
22
    }
23
}
24