Completed
Push — master ( 91361b...756e8e )
by max
02:53
created

Module::onBootstrap()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 5
nc 1
nop 1
1
<?php
0 ignored issues
show
Coding Style Compatibility introduced by
For compatibility and reusability of your code, PSR1 recommends that a file should introduce either new symbols (like classes, functions, etc.) or have side-effects (like outputting something, or including other files), but not both at the same time. The first symbol is defined on line 15 and the first side effect is on line 10.

The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.

The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.

To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.

Loading history...
2
3
namespace T4web\Authentication;
4
5
use Zend\ModuleManager\Feature\AutoloaderProviderInterface;
6
use Zend\ModuleManager\Feature\ConfigProviderInterface;
7
use Zend\ModuleManager\Feature\ControllerProviderInterface;
8
use Zend\EventManager\EventInterface;
9
10
class Module implements
0 ignored issues
show
Bug introduced by
Possible parse error: class missing opening or closing brace
Loading history...
11
    AutoloaderProviderInterface,
12
    ConfigProviderInterface,
13
    ControllerProviderInterface
14
{
15
    public function getConfig($env = null)
16
    {
17
        return include dirname(__DIR__) . '/config/module.config.php';
18
    }
19
20
    public function getAutoloaderConfig()
21
    {
22
        return [
23
            'Zend\Loader\StandardAutoloader' => [
24
                'namespaces' => [
25
                    __NAMESPACE__ => dirname(__DIR__) . '/src/' . __NAMESPACE__,
26
                ],
27
            ],
28
        ];
29
    }
30
31
    public function getControllerConfig()
32
    {
33
        return [
34
            'factories' => [
35
36
            ]
37
        ];
38
    }
39
}
40