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