Skip to content

Commit

Permalink
Formating fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mateussouzaweb committed May 17, 2016
1 parent 149aa38 commit fc21eba
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ public function collectRates(Mage_Shipping_Model_Rate_Request $request)
/**
* Retrieve all visible items from request
*
* @param Mage_Shipping_Model_Rate_Request $request
* @param Mage_Shipping_Model_Rate_Request $request Mage request
*
* @return array
*/
protected function _getRequestItems($request)
Expand All @@ -138,9 +139,8 @@ protected function _getRequestItems($request)
$allItems = $request->getAllItems();
$items = array();


foreach( $allItems as $item ){
if( !$item->getParentItemId() ){
foreach ( $allItems as $item ) {
if ( !$item->getParentItemId() ) {
$items[] = $item;
}
}
Expand All @@ -152,7 +152,9 @@ protected function _getRequestItems($request)

/**
* Gets Nominal Weight
* @param Mage_Shipping_Model_Rate_Request $request
*
* @param Mage_Shipping_Model_Rate_Request $request Mage request
*
* @return number
*/
protected function _getNominalWeight($request)
Expand Down Expand Up @@ -446,7 +448,8 @@ protected function _throwError($message, $log = null, $line = 'NO LINE', $custom
/**
* Generate Volume weight
*
* @param Mage_Shipping_Model_Rate_Request $request
* @param Mage_Shipping_Model_Rate_Request $request Mage request
*
* @return bool
*/
protected function _generateVolumeWeight($request)
Expand Down Expand Up @@ -823,7 +826,8 @@ protected function _addPostMethods($cServico)
* ...
* value 99: 81019
*
* @param Mage_Shipping_Model_Rate_Request $request
* @param Mage_Shipping_Model_Rate_Request $request Mage request
*
* @return PedroTeixeira_Correios_Model_Carrier_CorreiosMethod
*/
protected function _filterMethodByItemRestriction($request)
Expand Down

0 comments on commit fc21eba

Please sign in to comment.