Conditions | 2 |
Paths | 2 |
Total Lines | 22 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2.0438 |
Changes | 0 |
1 | <?php |
||
28 | 2 | public function send($filename, $content) |
|
29 | { |
||
30 | 2 | $client = parent::getClient(); |
|
|
|||
31 | |||
32 | try { |
||
33 | $params = [ |
||
34 | 2 | 'fileName' => $filename, |
|
35 | 2 | 'contentFile' => $content, |
|
36 | 2 | ]; |
|
37 | 2 | $response = $client->__soapCall('sendBill', [ 'parameters' => $params ]); |
|
38 | 2 | return $response->applicationResponse; |
|
39 | // $entry = readXml( $response->applicationResponse, 'R-20600055519-01-F001-00000001.xml'); |
||
40 | // if (!empty($entry)) { |
||
41 | // header('Content-Type: text/xml'); |
||
42 | // echo $entry; |
||
43 | // } |
||
44 | |||
45 | } |
||
46 | catch (\Exception $e) { |
||
47 | return $client->__getLastResponse(); |
||
48 | } |
||
49 | } |
||
50 | } |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()
method in theSon
calls the wrong method in the parent class.