| Conditions | 4 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | public function findByUniqueness(array $bills): array |
||
| 42 | { |
||
| 43 | $found = []; |
||
| 44 | foreach ($this->bills as $bill) { |
||
| 45 | foreach ($bills as $one) { |
||
| 46 | if (#!$bill->getType()->equals($one->getType()) || |
||
| 47 | !$bill->getTarget()->equals($one->getTarget()) |
||
| 48 | ) { |
||
| 49 | continue; |
||
| 50 | } |
||
| 51 | $found[] = $bill; |
||
| 52 | } |
||
| 53 | } |
||
| 54 | |||
| 55 | return $found; |
||
| 56 | } |
||
| 58 |