Module   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 4
Bugs 1 Features 1
Metric Value
wmc 2
c 4
b 1
f 1
lcom 0
cbo 0
dl 0
loc 21
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConfig() 0 7 1
A getAutoloaderConfig() 0 10 1
1
<?php
2
3
namespace LearnZF2Captcha;
4
5
class Module
6
{
7
    public function getConfig()
8
    {
9
        $moduleConfig = include __DIR__.'/config/module.config.php';
10
        $captchaConfig = include __DIR__.'/config/captcha.config.php';
11
12
        return array_merge($moduleConfig, $captchaConfig);
13
    }
14
15
    public function getAutoloaderConfig()
16
    {
17
        return [
18
            'Zend\Loader\StandardAutoloader' => [
19
                'namespaces' => [
20
                    __NAMESPACE__ => __DIR__.'/src/'.__NAMESPACE__,
21
                ],
22
            ],
23
        ];
24
    }
25
}
26