Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | public function scopeOrder($query) |
||
|
|||
10 | { |
||
11 | $configStatus = ConfigStatus::type('sprint')->orderby('position', 'ASC')->pluck('id')->implode(','); |
||
12 | return $query->orderByRaw("FIELD(config_status_id, ".$configStatus.")") |
||
13 | ->orderby('date_start', 'DESC') |
||
14 | ->orderby('date_finish', 'ASC'); |
||
15 | } |
||
16 | } |
||
17 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@return
annotation as described here.