Total Complexity | 7 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class SimpleBillRepository implements BillRepositoryInterface |
||
18 | { |
||
19 | protected $bills; |
||
20 | |||
21 | public function findId(BillInterface $bill) |
||
24 | } |
||
25 | |||
26 | public function findIds(array $bills): array |
||
29 | } |
||
30 | |||
31 | public function findByIds(array $ids): array |
||
32 | { |
||
33 | $bills = []; |
||
34 | foreach ($ids as $id) { |
||
35 | if (empty($this->bills[$id])) { |
||
36 | continue; |
||
37 | } |
||
38 | $bills[$id] = $this->bills[$id]; |
||
39 | } |
||
40 | |||
41 | return $bills; |
||
42 | } |
||
43 | |||
44 | public function save(BillInterface $bill) |
||
45 | { |
||
46 | $id = $bill->getId(); |
||
47 | $this->bills[$id] = $bill; |
||
48 | |||
49 | return $id; |
||
50 | } |
||
51 | |||
52 | public function findByTarget(TargetInterface $target) |
||
55 | } |
||
56 | } |
||
57 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.