| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | 24 | protected function compileRowNumber($partition, $orders) |
|
| 18 | { |
||
| 19 | 24 | $partition = 'partition by ' . implode(', ', array_map([$this, 'wrap'], (array)$partition)); |
|
| 20 | |||
| 21 | 24 | $over = trim($partition . ' ' . $orders); |
|
| 22 | |||
| 23 | 24 | return ', row_number() over (' . $over . ') as laravel_row'; |
|
| 24 | } |
||
| 26 |