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