| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1.0013 |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | 2 | public function __construct($name, LoopInterface $loop) |
|
| 16 | { |
||
| 17 | 2 | parent::__construct(); |
|
| 18 | |||
| 19 | 2 | $factory = $this; |
|
| 20 | $factory |
||
| 21 | 2 | ->bindParam('name', $name) |
|
| 22 | 2 | ->bindParam('loop', $loop) |
|
| 23 | ; |
||
| 24 | $factory |
||
| 25 | 2 | ->define(NullModel::class, function($config = []) { |
|
|
|
|||
| 26 | return new NullModel(); |
||
| 27 | 2 | }) |
|
| 28 | ; |
||
| 29 | 2 | } |
|
| 30 | } |
||
| 31 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.