| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 6 | class SomeTestClass |
||
| 7 | { |
||
| 8 | private $stack; |
||
| 9 | private $queue; |
||
| 10 | /** |
||
| 11 | * @var \SplObjectStorage |
||
| 12 | */ |
||
| 13 | private $storage; |
||
| 14 | |||
| 15 | public function __construct( |
||
| 16 | \SplStack $stack, |
||
| 17 | \SplQueue $queue, |
||
| 18 | \SplObjectStorage $storage, |
||
| 19 | array $foo = [], |
||
|
|
|||
| 20 | string $bar = 'foo', |
||
| 21 | array $bazz = [] |
||
| 22 | ) { |
||
| 23 | $this->stack = $stack; |
||
| 24 | $this->queue = $queue; |
||
| 25 | $this->storage = $storage; |
||
| 26 | } |
||
| 27 | |||
| 28 | public function __invoke(): void |
||
| 29 | { |
||
| 30 | $this->stack->toArray(); |
||
| 31 | $this->queue->count(); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getQueue(): \SplQueue |
||
| 35 | { |
||
| 36 | return $this->queue; |
||
| 37 | } |
||
| 38 | |||
| 39 | public function getStack(): \SplStack |
||
| 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.