| Conditions | 2 |
| Paths | 2 |
| Total Lines | 23 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function send($filename, $content) |
||
| 29 | { |
||
| 30 | $client = parent::getClient(); |
||
| 31 | |||
| 32 | try { |
||
| 33 | $response = $client->__soapCall('sendBill', [ |
||
| 34 | 'fileName' => $filename, |
||
| 35 | 'contentFile' => $content, |
||
| 36 | ]); |
||
| 37 | return $response->applicationResponse; |
||
| 38 | // $entry = readXml( $response->applicationResponse, 'R-20600055519-01-F001-00000001.xml'); |
||
| 39 | // if (!empty($entry)) { |
||
| 40 | // header('Content-Type: text/xml'); |
||
| 41 | // echo $entry; |
||
| 42 | // } |
||
| 43 | |||
| 44 | } |
||
| 45 | catch (\Exception $e) { |
||
| 46 | return $client->__getLastResponse(); |
||
| 47 | // echo "<h2>Exception Error!</h2>"; |
||
| 48 | // echo $e->getMessage(); |
||
| 49 | } |
||
| 50 | } |
||
| 51 | } |
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 theSoncalls the wrong method in the parent class.