Completed
Push — master ( aadd88...7f8ad4 )
by Андрей
02:11
created

Module::getConfig()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 4
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * @link    https://github.com/nnx-framework/entry-name-resolver
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace Nnx\EntryNameResolver\PhpUnit\TestData\ContextResolver\Custom\Service\Module1;
7
8
use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
9
use Zend\ModuleManager\Feature\ConfigProviderInterface;
10
use Nnx\ModuleOptions\ModuleConfigKeyProviderInterface;
11
12
/**
13
 * Class Module
14
 *
15
 * @package Nnx\EntryNameResolver\PhpUnit\TestData\ContextResolver\Custom\Service\Module1
16
 */
17 View Code Duplication
class Module implements
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
18
    AutoloaderProviderInterface,
19
    ConfigProviderInterface,
20
    ModuleConfigKeyProviderInterface
21
{
22
    /**
23
     * Имя секции в конфиги приложения отвечающей за настройки модуля
24
     *
25
     * @var string
26
     */
27
    const CONFIG_KEY = 'custom_service_module_1';
28
29
    /**
30
     * Имя модуля
31
     *
32
     * @var string
33
     */
34
    const MODULE_NAME = __NAMESPACE__;
35
36
    /**
37
     * @return string
38
     */
39
    public function getModuleConfigKey()
40
    {
41
        return static::CONFIG_KEY;
42
    }
43
44
    /**
45
     * @return array
46
     */
47
    public function getAutoloaderConfig()
48
    {
49
        return array(
50
            'Zend\Loader\StandardAutoloader' => array(
51
                'namespaces' => array(
52
                    __NAMESPACE__ => __DIR__ . '/src/',
53
                ),
54
            ),
55
        );
56
    }
57
58
59
    /**
60
     * @inheritdoc
61
     *
62
     * @return array
63
     */
64
    public function getConfig()
65
    {
66
        return include __DIR__ . '/config/module.config.php';
67
    }
68
}