Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
16 | public function transform(Address $address) |
||
17 | { |
||
18 | return array_filter([ |
||
19 | '$name' => $address->getName(), |
||
20 | '$phone' => $address->getPhone(), |
||
21 | '$address_1' => $address->getAddress1(), |
||
22 | '$address_2' => $address->getAddress2(), |
||
23 | '$city' => $address->getCity(), |
||
24 | '$region' => $address->getRegion(), |
||
25 | '$country' => $address->getCountry(), |
||
26 | '$zipcode' => $address->getZipcode() |
||
27 | ]); |
||
28 | } |
||
29 | } |
||
30 |