Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | final class RSample implements Operation |
||
14 | { |
||
15 | /** |
||
16 | * @var float |
||
17 | */ |
||
18 | private $probability; |
||
19 | |||
20 | /** |
||
21 | * RSample constructor. |
||
22 | * |
||
23 | * @param float $probability |
||
24 | */ |
||
25 | 1 | public function __construct(float $probability) |
|
26 | { |
||
27 | 1 | $this->probability = $probability; |
|
28 | 1 | } |
|
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | 1 | public function on(iterable $collection): Closure |
|
42 | } |
||
43 | } |
||
44 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.