Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
57 | 2 | public function checkVat($countryCode, $vatNumber) |
|
58 | { |
||
59 | try { |
||
60 | 2 | return $this->getSoapClient()->checkVat( |
|
61 | [ |
||
62 | 1 | 'countryCode' => $countryCode, |
|
63 | 1 | 'vatNumber' => $vatNumber |
|
64 | ] |
||
65 | ); |
||
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!=
, orswitch
conditions), values of different types might be equal.For
string
values, the empty string''
is a special case, in particular the following results might be unexpected: