Conditions | 1 |
Paths | 1 |
Total Lines | 24 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
15 | 1 | function __construct() |
|
16 | { |
||
17 | 1 | parent::__construct(); |
|
18 | |||
19 | 1 | $this['LocalFile'] = getenv("NoaaLocalFilePath"); |
|
20 | |||
21 | $this['NoaaAlertManager'] = function ($c) { |
||
22 | 1 | return new NoaaAlertManager($c['XmlProvider'], $c['IndexParser']); |
|
23 | }; |
||
24 | |||
25 | $this['XmlProvider'] = function ($c) { |
||
26 | 1 | return $c['XmlProviderFactory']->getXmlProvider(); |
|
27 | }; |
||
28 | |||
29 | $this['XmlProviderFactory'] = function ($c) { |
||
30 | 1 | return new XmlProviderFactory($c['LocalFile']); |
|
31 | }; |
||
32 | |||
33 | $this['IndexParser'] = function ($c) { |
||
34 | 1 | return new IndexParser($c['XmlParser']); |
|
35 | }; |
||
36 | |||
37 | $this['XmlParser'] = function ($c) { |
||
|
|||
38 | 1 | return new XmlParser(); |
|
39 | }; |
||
44 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.