| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.032 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 32 | public function accept() |
|
| 24 | { |
||
| 25 | 32 | $item = $this->getInnerIterator()->current(); |
|
| 26 | |||
| 27 | // Disclose items not implementing SalesmanIdProviderInterface |
||
| 28 | 32 | if (!$item instanceOf SalesmanIdProviderInterface) { |
|
| 29 | return false; |
||
| 30 | } |
||
| 31 | |||
| 32 | 32 | return $item->isActive() == $this->active_flag; |
|
| 33 | |||
| 34 | } |
||
| 35 | |||
| 37 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.