Skip to content

Commit

Permalink
use snake case for the array key's
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardPerdaan committed Feb 19, 2019
1 parent b8e1ee6 commit c4d4b67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/code/community/TIG/MyParcel2014/Model/Api/MyParcel.php
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ protected function _getConsignmentData(TIG_MyParcel2014_Model_Shipment $myParcel
}
}
}
$data['customs_declaration']['weight'] = (int)$WeightData['totalWeight'];
$data['customs_declaration']['weight'] = (int)$WeightData['total_weight'];

}

Expand All @@ -796,8 +796,8 @@ protected function _getConsignmentData(TIG_MyParcel2014_Model_Shipment $myParcel
unset($data['options']['weight']);
}

if ($WeightData['totalWeight']){
$data['physical_properties']['weight'] = (int)$WeightData['totalWeight'];
if ($WeightData['total_weight']){
$data['physical_properties']['weight'] = (int)$WeightData['total_weight'];
}

/**
Expand Down Expand Up @@ -854,7 +854,7 @@ public function getTotalWeight($totalWeight, $item, $isWoldShipment = false) {
$price *= $qty;


return ['weight' => $weight, 'totalWeight' => $totalWeight, 'qty' => $qty, 'price' => $price];
return ['weight' => $weight, 'total_weight' => $totalWeight, 'qty' => $qty, 'price' => $price];


}
Expand Down

0 comments on commit c4d4b67

Please sign in to comment.