Completed
Push — master ( d737b5...538bd2 )
by Afshin
02:57
created

AbstractModule::initRoutes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 2
rs 10
1
<?php
2
3
namespace Core\Interfaces;
4
use Core\App;
5
use Slim\Container;
6
use Composer\Autoload\ClassLoader;
7
8
abstract class AbstractModule
9
{
10
11
12
    /**
13
     * Get config array for this module
14
     * @return array
15
     */
16
    public function getModuleConfig()
17
    {
18
        return [];
19
    }
20
21
22
    /**
23
     * Set class maps for class loader to autoload classes for this module
24
     * @param Container $container
25
     * @return void
26
     */
27
    public function initDependencies(Container $container)
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

27
    public function initDependencies(/** @scrutinizer ignore-unused */ Container $container)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
28
    {
29
30
    }
31
32
    /**
33
     * Initiate app middleware, route middleware should go in load() with routes
34
     * @param App $app
35
     * @return void
36
     */
37
    public function initMiddleware(App $app)
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

37
    public function initMiddleware(/** @scrutinizer ignore-unused */ App $app)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
38
    {
39
40
    }
41
42
    /**
43
     * Load is run last, when config, dependencies, etc have been initiated
44
     * Routes ought to go here
45
     * @param App $app
46
     * @return void
47
     */
48
    public function initRoutes(App $app)
0 ignored issues
show
Unused Code introduced by
The parameter $app is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

48
    public function initRoutes(/** @scrutinizer ignore-unused */ App $app)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
49
    {
50
51
    }
52
}