Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
21 | 3 | public function getCorrectedAddress() |
|
22 | { |
||
23 | 3 | if (!$this->hasCorrectedAddress()) { |
|
24 | 2 | return null; |
|
25 | } |
||
26 | |||
27 | return [ |
||
28 | 1 | 'street' => (string)$this->getData()->corrected_address['street'], |
|
29 | 1 | 'streetNo' => (string)$this->getData()->corrected_address['streetNo'], |
|
30 | 1 | 'zip' => (string)$this->getData()->corrected_address['zip'], |
|
31 | 1 | 'city' => (string)$this->getData()->corrected_address['city'], |
|
32 | 1 | 'country' => (string)$this->getData()->corrected_address['country'], |
|
33 | 1 | ]; |
|
34 | } |
||
35 | |||
51 |