Passed
Pull Request — master (#48)
by Timothy
01:40
created

Module   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getAutoloaderConfig() 0 10 1
A getConfig() 0 4 1
1
<?php
2
/**
3
 * @author Evgeny Shpilevsky <[email protected]>
4
 */
5
6
namespace EnliteMonolog;
7
8
use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
9
use Zend\ModuleManager\Feature\ConfigProviderInterface;
10
11
class Module implements
12
    AutoloaderProviderInterface,
13
    ConfigProviderInterface
14
{
15
16
    /**
17
     * {@inheritdoc}
18
     */
19
    public function getAutoloaderConfig()
20
    {
21
        return array(
22
            'Zend\Loader\StandardAutoloader' => array(
23
                'namespaces' => array(
24
                    __NAMESPACE__ => __DIR__ . '/../../src/' . __NAMESPACE__,
25
                ),
26
            )
27
        );
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function getConfig()
34
    {
35
        return include __DIR__ . "/../../config/module.config.php";
36
    }
37
}
38