Code Duplication    Length = 52-65 lines in 7 locations

test/phpunit/files/ContextResolver/vendor/custom-service/module1/Module.php 1 location

@@ 17-68 (lines=52) @@
14
 *
15
 * @package Nnx\EntryNameResolver\PhpUnit\TestData\ContextResolver\Custom\Service\Module1
16
 */
17
class Module implements
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
} 

test/phpunit/files/ContextResolver/vendor/custom-service/module2/Module.php 1 location

@@ 17-68 (lines=52) @@
14
 *
15
 * @package Nnx\EntryNameResolver\PhpUnit\TestData\ContextResolver\Custom\Service\Module2
16
 */
17
class Module implements
18
    AutoloaderProviderInterface,
19
    ConfigProviderInterface,
20
    ModuleConfigKeyProviderInterface
21
{
22
    /**
23
     * Имя секции в конфиги приложения отвечающей за настройки модуля
24
     *
25
     * @var string
26
     */
27
    const CONFIG_KEY = 'custom_service_module_2';
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
} 

test/phpunit/files/ContextResolver/vendor/custom-service/module3/Module.php 1 location

@@ 17-68 (lines=52) @@
14
 *
15
 * @package Nnx\EntryNameResolver\PhpUnit\TestData\ContextResolver\Custom\Service\Module3
16
 */
17
class Module implements
18
    AutoloaderProviderInterface,
19
    ConfigProviderInterface,
20
    ModuleConfigKeyProviderInterface
21
{
22
    /**
23
     * Имя секции в конфиги приложения отвечающей за настройки модуля
24
     *
25
     * @var string
26
     */
27
    const CONFIG_KEY = 'custom_service_module_3';
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
} 

test/phpunit/files/ContextResolver/vendor/custom-service/service/Module.php 1 location

@@ 19-83 (lines=65) @@
16
 *
17
 * @package Nnx\EntryNameResolver\PhpUnit\TestData\ContextResolver\Custom\Service\Service
18
 */
19
class Module implements
20
    AutoloaderProviderInterface,
21
    ConfigProviderInterface,
22
    ModuleConfigKeyProviderInterface
23
{
24
25
    /**
26
     * Имя секции в конфиги приложения отвечающей за настройки модуля
27
     *
28
     * @var string
29
     */
30
    const CONFIG_KEY = 'custom_service_service';
31
32
    /**
33
     * Имя модуля
34
     *
35
     * @var string
36
     */
37
    const MODULE_NAME = __NAMESPACE__;
38
39
    /**
40
     * @inheritdoc
41
     *
42
     * @return array
43
     */
44
    public function getCommonModuleOptions()
45
    {
46
        return [
47
            'test_token'
48
        ];
49
    }
50
51
    /**
52
     * @return string
53
     */
54
    public function getModuleConfigKey()
55
    {
56
        return static::CONFIG_KEY;
57
    }
58
59
    /**
60
     * @return array
61
     */
62
    public function getAutoloaderConfig()
63
    {
64
        return [
65
            'Zend\Loader\StandardAutoloader' => [
66
                'namespaces' => [
67
                    __NAMESPACE__ => __DIR__ . '/src/',
68
                ],
69
            ],
70
        ];
71
    }
72
73
74
    /**
75
     * @inheritdoc
76
     *
77
     * @return array
78
     */
79
    public function getConfig()
80
    {
81
        return include __DIR__ . '/config/module.config.php';
82
    }
83
} 

test/phpunit/files/ContextResolver/vendor/service/module1/Module.php 1 location

@@ 17-68 (lines=52) @@
14
 *
15
 * @package Nnx\EntryNameResolver\PhpUnit\TestData\ContextResolver\Service\Module1
16
 */
17
class Module implements
18
    AutoloaderProviderInterface,
19
    ConfigProviderInterface,
20
    ModuleConfigKeyProviderInterface
21
{
22
    /**
23
     * Имя секции в конфиги приложения отвечающей за настройки модуля
24
     *
25
     * @var string
26
     */
27
    const CONFIG_KEY = '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
} 

test/phpunit/files/ContextResolver/vendor/service/module2/Module.php 1 location

@@ 17-68 (lines=52) @@
14
 *
15
 * @package Nnx\EntryNameResolver\PhpUnit\TestData\ContextResolver\Service\Module2
16
 */
17
class Module implements
18
    AutoloaderProviderInterface,
19
    ConfigProviderInterface,
20
    ModuleConfigKeyProviderInterface
21
{
22
    /**
23
     * Имя секции в конфиги приложения отвечающей за настройки модуля
24
     *
25
     * @var string
26
     */
27
    const CONFIG_KEY = 'service_module_2';
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
} 

test/phpunit/files/ContextResolver/vendor/service/module3/Module.php 1 location

@@ 17-68 (lines=52) @@
14
 *
15
 * @package Nnx\EntryNameResolver\PhpUnit\TestData\ContextResolver\Service\Module3
16
 */
17
class Module implements
18
    AutoloaderProviderInterface,
19
    ConfigProviderInterface,
20
    ModuleConfigKeyProviderInterface
21
{
22
    /**
23
     * Имя секции в конфиги приложения отвечающей за настройки модуля
24
     *
25
     * @var string
26
     */
27
    const CONFIG_KEY = 'service_module_3';
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
}