Module   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConfig() 0 4 1
A __invoke() 0 8 1
1
<?php
2
declare(strict_types=1);
3
4
namespace AcMailer;
5
6
/**
7
 * Module class
8
 * @author Alejandro Celaya Alastrué
9
 * @link http://www.alejandrocelaya.com
10
 */
11
class Module
12
{
13
    public function getConfig()
14
    {
15 1
        return include __DIR__ . '/../config/module.config.php';
16
    }
17 1
18
    public function __invoke()
19
    {
20 1
        $moduleConfig = $this->getConfig();
21
        $moduleConfig['dependencies'] = $moduleConfig['service_manager'];
22
        unset($moduleConfig['service_manager']);
23
24
        return $moduleConfig;
25 1
    }
26
}
27