Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
46 | protected function makeCursor(Query $query, $row) |
||
47 | { |
||
48 | 32 | return array_replace_recursive( |
|
49 | ...array_map( |
||
50 | 32 | function ($column) use ($row) { |
|
51 | 32 | return $this->access->with($column, $this->field($row, $column)); |
|
52 | 32 | }, |
|
53 | 32 | array_intersect( |
|
54 | 32 | array_keys( |
|
55 | 32 | iterator_to_array($this->access->iterate($row)) |
|
56 | 32 | ), |
|
57 | 32 | array_map( |
|
58 | static function (Order $order) { |
||
59 | 32 | return $order->column(); |
|
60 | 32 | }, |
|
61 | 32 | $query->orders() |
|
62 | 32 | ) |
|
68 |