Conditions | 4 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public static function send($result, $posts, $ctrl) |
||
33 | { |
||
34 | $ctrl->hookAfter($posts, $result); |
||
35 | $result['api_status'] = $ctrl->hook_api_status ?: $result['api_status']; |
||
36 | $result['api_message'] = $ctrl->hook_api_message ?: $result['api_message']; |
||
37 | |||
38 | if (cbGetsetting('api_debug_mode') == 'true') { |
||
39 | $result['api_authorization'] = 'You are in debug mode !'; |
||
40 | } |
||
41 | sendAndTerminate(response()->json($result)); |
||
|
|||
42 | } |
||
44 | } |