Completed
Push — master ( 60399b...890f86 )
by Craig
06:15
created

AbstractModule::addStylesheet()   A

Complexity

Conditions 3
Paths 4

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 7
nc 4
nop 1
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A AbstractModule::build() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the Zikula package.
5
 *
6
 * Copyright Zikula Foundation - http://zikula.org/
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Zikula\Core;
13
14
use Symfony\Component\DependencyInjection\ContainerBuilder;
15
16
abstract class AbstractModule extends AbstractBundle
17
{
18
    private $serviceIds = [];
19
20
    public function getNameType()
21
    {
22
        return 'Module';
23
    }
24
25
//    /**
26
//     * @return ModuleInstallerInterface
27
//     */
28
//    abstract public function createInstaller();
29
30
    public function build(ContainerBuilder $container)
31
    {
32
        // modules have to use DI Extensions
33
    }
34
35
//    public function getContainerExtension()
0 ignored issues
show
Unused Code Comprehensibility introduced by
47% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
36
//    {
37
//        $ex = parent::getContainerExtension();
38
//
39
//        if ($ex != null) {
40
//            $ex = new DependencyInjection\SandboxContainerExtension($ex, $this->serviceIds);
41
//        }
42
//
43
//        return $ex;
44
//    }
45
46
    public function getServiceIds()
47
    {
48
        return $this->serviceIds;
49
    }
50
}
51