Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
13 | public static function handleListAction($table, $data, $responsesFields, $ctrl) |
||
14 | { |
||
15 | $rows = self::sortRows($table, $data); |
||
16 | if ($rows) { |
||
17 | return self::handleRows($responsesFields, $rows); |
||
18 | } |
||
19 | $result = ApiResponder::makeResult(0, 'No data found !'); |
||
20 | $result['data'] = []; |
||
21 | ApiResponder::send($result, request()->all(), $ctrl); |
||
22 | } |
||
58 | } |