Conditions | 5 |
Paths | 12 |
Total Lines | 18 |
Code Lines | 31 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
3 | function app_content($request, $args){ |
||
4 | |||
5 | global $ES; |
||
6 | |||
7 | $index = $args['index']; |
||
8 | $type = $args['type']; |
||
9 | $id = $args['id']; |
||
10 | |||
11 | $params = []; |
||
12 | $params['index']= $index; |
||
13 | $params['type'] = $type; |
||
14 | $params['id'] = $id; |
||
15 | $results = $ES->delete($params); |
||
16 | |||
17 | sleep(1); |
||
18 | header("location:" . BASE_HREF . "/" . $index . "/" . $type . "?res=success&req=delete"); |
||
19 | exit; |
||
20 | } |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.