Conditions | 2 |
Paths | 3 |
Total Lines | 30 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function validate($xml, $xsd){ |
||
21 | $result = null; |
||
22 | |||
23 | try { |
||
24 | |||
25 | |||
26 | // $response = $this->client->request('POST', '/validate', [ |
||
27 | // 'form_params' => [ |
||
28 | // 'field_name' => 'abc', |
||
29 | // 'other_field' => '123', |
||
30 | // 'nested_field' => [ |
||
31 | // 'nested' => 'hello' |
||
32 | // ] |
||
33 | // ] |
||
34 | // ]); |
||
35 | |||
36 | $response = $this->client->request('POST', '/validate', [ |
||
37 | 'form_params' => [ |
||
38 | 'parametro' => 'prova' |
||
39 | ] |
||
40 | ]); |
||
41 | |||
42 | $result = $res->getBody(); |
||
43 | |||
44 | } catch (\Exception $e) { |
||
45 | |||
46 | } |
||
47 | |||
48 | return $result; |
||
49 | } |
||
50 | |||
69 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.