| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function handle($query, $table, $orderBy, $primaryKey) |
||
| 14 | { |
||
| 15 | if (! $orderBy) { |
||
| 16 | $query->orderby($table.'.'.$primaryKey, 'desc'); |
||
| 17 | return; |
||
| 18 | } |
||
| 19 | if (is_string($orderBy)) { |
||
| 20 | $orderBy = $this->normalizeOrderBy($orderBy); |
||
| 21 | } |
||
| 22 | |||
| 23 | $this->orderRows($query, $table, $orderBy); |
||
| 24 | } |
||
| 55 | } |