Skip to content

Commit

Permalink
Merge pull request #1 from lashowroom/scrutinizer-patch-1
Browse files Browse the repository at this point in the history
Scrutinizer Auto-Fixes
  • Loading branch information
baldurrensch committed Jan 31, 2017
2 parents ec858e2 + eba2e01 commit 4d83dfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ public function toArray()
'to_state' => $this->toAddress->getState(),
'to_zip' => $this->toAddress->getZip(),
'to_country' => $this->toAddress->getCountry(),
'line_items' => array_map(function (LineItem $elem) {
'line_items' => array_map(function(LineItem $elem) {
return $elem->toArray();
}, $this->lineItems),
'amount' => $this->getAmount(),
'shipping' => $this->getShipping(),
'nexus_addresses' => array_map(function (Address $elem, $id) {
'nexus_addresses' => array_map(function(Address $elem, $id) {
return array_merge($elem->toArray(), ['id' => $id, ]);
}, $this->nexusAddresses, array_keys($this->nexusAddresses)),
];
Expand Down

0 comments on commit 4d83dfd

Please sign in to comment.