Module   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 50%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 26
ccs 2
cts 4
cp 0.5
rs 10
c 2
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConfig() 0 4 1
A getAutoloaderConfig() 0 10 1
1
<?php
2
/**
3
 * MtMail - e-mail module for Zend Framework
4
 *
5
 * @link      http://github.com/mtymek/MtMail
6
 * @copyright Copyright (c) 2013-2017 Mateusz Tymek
7
 * @license   BSD 2-Clause
8
 */
9
10
namespace MtMail;
11
12
use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
13
use Zend\ModuleManager\Feature\ConfigProviderInterface;
14
15
class Module implements
16
    AutoloaderProviderInterface,
17
    ConfigProviderInterface
18
{
19
    /**
20
     * {@inheritDoc}
21
     */
22
    public function getAutoloaderConfig()
23
    {
24
        return [
25
            'Zend\Loader\StandardAutoloader' => [
26
                'namespaces' => [
27
                    __NAMESPACE__ => __DIR__,
28
                ],
29
            ],
30
        ];
31
    }
32
33
    /**
34
     * {@inheritDoc}
35
     */
36 1
    public function getConfig()
37
    {
38 1
        return include __DIR__ . '/../config/module.config.php';
39
    }
40
}
41