| Conditions | 2 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 5 | public function services() |
|
| 26 | { |
||
| 27 | 5 | $this->registry->add('toolbar', function ($app) { |
|
|
|
|||
| 28 | |||
| 29 | 5 | $toolbar = new Toolbar(); |
|
| 30 | 5 | $collectors = []; |
|
| 31 | |||
| 32 | 5 | $collectors[] = new Performance(); |
|
| 33 | 5 | $collectors[] = new DatabaseCollector($this->registry->make('db')); |
|
| 34 | |||
| 35 | 5 | foreach ($collectors as $collector) { |
|
| 36 | |||
| 37 | 5 | $toolbar->addCollector($collector); |
|
| 38 | } |
||
| 39 | |||
| 40 | 5 | return $toolbar; |
|
| 41 | 5 | }); |
|
| 44 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.