Module::__invoke()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
c 0
b 0
f 0
rs 9.4285
ccs 2
cts 2
cp 1
cc 1
eloc 5
nc 1
nop 0
crap 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