Ignore:
Timestamp:
2012/02/17 02:42:21 (14 years ago)
Author:
Seasoft
Message:

#1613 (ソース整形・ソースコメントの改善)

  • Zend Framework PHP 標準コーディング規約への準拠を高めた
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_CartSession.php

    r21516 r21527  
    113113        $max = $this->getMax($productTypeId); 
    114114        for ($i = 0; $i <= $max; $i++) { 
    115             if(isset($this->cartSession[$productTypeId][$i]['id']) 
    116                && $this->cartSession[$productTypeId][$i]['id'] == $id) { 
    117  
     115            if (isset($this->cartSession[$productTypeId][$i]['id']) 
     116                && $this->cartSession[$productTypeId][$i]['id'] == $id 
     117            ) { 
    118118                // 税込み合計 
    119119                $price = $this->cartSession[$productTypeId][$i]['price']; 
     
    131131        $max = $this->getMax($productTypeId); 
    132132        for ($i = 0; $i <= $max; $i++) { 
    133             if(isset($this->cartSession[$productTypeId][$i]['id']) 
    134                && $this->cartSession[$productTypeId][$i]['id'] == $id) { 
     133            if (isset($this->cartSession[$productTypeId][$i]['id']) 
     134                && $this->cartSession[$productTypeId][$i]['id'] == $id 
     135            ) { 
    135136                $this->cartSession[$productTypeId][$i][$key] = $val; 
    136137            } 
     
    336337        $arrRet = array(); 
    337338        for ($i = 0; $i <= $max; $i++) { 
    338             if(isset($this->cartSession[$productTypeId][$i]['cart_no']) 
    339                && $this->cartSession[$productTypeId][$i]['cart_no'] != '') { 
     339            if (isset($this->cartSession[$productTypeId][$i]['cart_no']) 
     340                && $this->cartSession[$productTypeId][$i]['cart_no'] != '') { 
    340341 
    341342                // 商品情報は常に取得 
     
    346347                $this->cartSession[$productTypeId][$i]['price'] = $price; 
    347348 
    348                 $this->cartSession[$productTypeId][$i]['point_rate'] = 
    349                     $this->cartSession[$productTypeId][$i]['productsClass']['point_rate']; 
     349                $this->cartSession[$productTypeId][$i]['point_rate'] 
     350                    = $this->cartSession[$productTypeId][$i]['productsClass']['point_rate']; 
    350351 
    351352                $quantity = $this->cartSession[$productTypeId][$i]['quantity']; 
     
    621622     */ 
    622623    function calculate($productTypeId, &$objCustomer, $use_point = 0, 
    623                        $deliv_pref = '', $charge = 0, $discount = 0, $deliv_id = 0) { 
     624        $deliv_pref = '', $charge = 0, $discount = 0, $deliv_id = 0 
     625    ) { 
    624626        $objDb = new SC_Helper_DB_Ex(); 
    625627 
     
    660662        // 加算ポイントの計算 
    661663        if (USE_POINT !== false) { 
    662             $results['add_point'] = SC_Helper_DB_Ex::sfGetAddPoint($total_point, 
    663                                                                    $use_point); 
     664            $results['add_point'] = SC_Helper_DB_Ex::sfGetAddPoint($total_point, $use_point); 
    664665            if ($objCustomer != '') { 
    665666                // 誕生日月であった場合 
Note: See TracChangeset for help on using the changeset viewer.