| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 57 | 2 | public function checkVat($countryCode, $vatNumber) |
|
| 58 | { |
||
| 59 | try { |
||
| 60 | 2 | return $this->getSoapClient()->checkVat( |
|
| 61 | array( |
||
| 62 | 1 | 'countryCode' => $countryCode, |
|
| 63 | 'vatNumber' => $vatNumber |
||
| 64 | 1 | ) |
|
| 65 | 1 | ); |
|
| 66 | 1 | } catch (SoapFault $e) { |
|
| 67 | 1 | throw new ViesException('Error communicating with VIES service', 0, $e); |
|
| 68 | } |
||
| 69 | } |
||
| 70 | |||
| 92 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: