| Conditions | 2 |
| Paths | 2 |
| Total Lines | 22 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function index() |
||
| 13 | { |
||
| 14 | $column = 'created_at'; |
||
| 15 | $direction = 'asc'; |
||
| 16 | |||
| 17 | // add support for sorting in vuetable-2 |
||
| 18 | $sort = request()->get('sort'); |
||
| 19 | if ($sort) { |
||
| 20 | list($column, $direction) = explode('|', $sort); |
||
| 21 | } |
||
| 22 | |||
| 23 | $paginator = Transaction::query() |
||
|
|
|||
| 24 | ->orderBy($column, $direction) |
||
| 25 | ->paginate(10); |
||
| 26 | |||
| 27 | $transactions = $paginator->getCollection(); |
||
| 28 | |||
| 29 | return fractal() |
||
| 30 | ->collection($transactions) |
||
| 31 | ->transformWith(new TransactionTransfomer()) |
||
| 32 | ->paginateWith(new IlluminatePaginatorAdapter($paginator)); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.