Completed
Push — master ( 9b8114...2ed294 )
by Nils
02:31
created

LeankoalaExtension::nullFunction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
namespace whm\Smoke\Extensions\Leankoala;
4
5
use whm\Smoke\Config\Configuration;
6
7
class LeankoalaExtension
8
{
9
    private $systems = array();
10
11
    public function init(Configuration $_configuration)
12
    {
13
        if ($_configuration->hasSection('Leankoala')) {
14
            $config = $_configuration->getSection('Leankoala');
15
            $this->systems = $config['systems'];
16
        }
17
    }
18
19
    public function getSystem($componentId)
20
    {
21
        if (array_key_exists($componentId, $this->systems)) {
22
            return (string) $this->systems[$componentId];
23
        } else {
24
            return $componentId;
25
        }
26
    }
27
28
    /**
29
     * @Event("Scanner.CheckResponse.isFiltered")
30
     */
31
    public function nullFunction()
32
    {
33
    }
34
}
35