Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | 1 | public function __invoke($collection, $source) |
|
|
|||
22 | { |
||
23 | 1 | $sources = func_get_args(); |
|
24 | 1 | array_shift($sources); // remove $collection |
|
25 | |||
26 | 1 | $collection = clone $collection; |
|
27 | |||
28 | 1 | foreach ($sources as $source) { |
|
29 | 1 | foreach ($source as $key => $value) { |
|
30 | 1 | $collection[$key] = $value; |
|
31 | } |
||
32 | } |
||
33 | |||
34 | 1 | return $collection; |
|
35 | } |
||
36 | } |
||
37 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.