| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 2 | public static function ahoy(array $config) |
|
| 29 | 2 | {
|
|
| 30 | 2 | static $inst = null; |
|
| 31 | 2 | if($inst === null) |
|
| 32 | 2 | {
|
|
| 33 | 1 | $inst = new Application(); |
|
| 34 | 1 | $inst->registry = Registry::ahoy(); |
|
| 35 | 1 | foreach($config as $key => $value) |
|
| 36 | {
|
||
| 37 | 1 | $inst->registry->set($key,$value); |
|
| 38 | 2 | } |
|
| 39 | 1 | } |
|
| 40 | 2 | return $inst; |
|
| 41 | } |
||
| 42 | |||
| 53 | } |
This check marks private properties in classes that are never used. Those properties can be removed.