Ignore:
Timestamp:
2013/06/08 16:35:27 (11 years ago)
Author:
Seasoft
Message:

#2043 (typo修正・ソース整形・ソースコメントの改善 for 2.13.0)

  • 主に空白・空白行の調整。もう少し整えたいが、一旦現状コミット。
File:
1 edited

Legend:

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

    r22736 r22856  
    6767            ? $this->cartSession[$productTypeId]['cancel_purchase'] : ''; 
    6868        $this->cartSession[$productTypeId]['cancel_purchase'] = false; 
     69 
    6970        return $ret; 
    7071    } 
     
    7879            if ($this->cartSession[$productTypeId][$i]['quantity'] 
    7980                != $_SESSION[$this->key_tmp][$i]['quantity']) { 
    80  
    8181                $change = true; 
    8282                break; 
     
    8484            if ($this->cartSession[$productTypeId][$i]['id'] 
    8585                != $_SESSION[$this->key_tmp][$i]['id']) { 
    86  
    8786                $change = true; 
    8887                break; 
     
    9695            $this->cartSession[$productTypeId]['cancel_purchase'] = false; 
    9796        } 
     97 
    9898        return $this->cartSession[$productTypeId]['cancel_purchase']; 
    9999    } 
     
    106106            $count[] = $this->cartSession[$productTypeId][$key]['cart_no']; 
    107107        } 
     108 
    108109        return max($count) + 1; 
    109110    } 
     
    132133            } 
    133134        } 
     135 
    134136        return 0; 
    135137    } 
     
    161163            } 
    162164        } 
     165 
    163166        return $max; 
    164167    } 
     
    172175            $total+= $this->cartSession[$productTypeId][$i]['quantity']; 
    173176        } 
     177 
    174178        return $total; 
    175179    } 
     
    182186        $max = $this->getMax($productTypeId); 
    183187        for ($i = 0; $i <= $max; $i++) { 
    184  
    185188            if (!isset($this->cartSession[$productTypeId][$i]['price'])) { 
    186189                $this->cartSession[$productTypeId][$i]['price'] = ''; 
     
    199202            $total+= ($incTax * $quantity); 
    200203        } 
     204 
    201205        return $total; 
    202206    } 
     
    216220            $total+= ($tax * $quantity); 
    217221        } 
     222 
    218223        return $total; 
    219224    } 
     
    242247            } 
    243248        } 
     249 
    244250        return $total; 
    245251    } 
     
    254260        $max = $this->getMax($productTypeId); 
    255261        for ($i = 0; $i <= $max; $i++) { 
    256  
    257262            if ($this->cartSession[$productTypeId][$i]['id'] == $product_class_id) { 
    258263                $val = $this->cartSession[$productTypeId][$i]['quantity'] + $quantity; 
     
    365370            if (isset($this->cartSession[$productTypeId][$i]['cart_no']) 
    366371                && $this->cartSession[$productTypeId][$i]['cart_no'] != '') { 
    367  
    368372                // 商品情報は常に取得 
    369373                // TODO 同一インスタンス内では1回のみ呼ぶようにしたい 
     
    394398            } 
    395399        } 
     400 
    396401        return $arrRet; 
    397402    } 
     
    415420            } 
    416421        } 
     422 
    417423        return $results; 
    418424    } 
     
    433439            } 
    434440        } 
     441 
    435442        return $productClassIDs; 
    436443    } 
     
    562569                $tpl_message .= "※ 現時点で販売していない商品が含まれておりました。該当商品をカートから削除しました。\n"; 
    563570            } else { 
    564  
    565571                /* 
    566572                 * 配送業者のチェック 
     
    593599            } 
    594600        } 
     601 
    595602        return $tpl_message; 
    596603    } 
     
    655662        $deliv_pref = '', $charge = 0, $discount = 0, $deliv_id = 0 
    656663    ) { 
    657  
    658664        $results = array(); 
    659665        $total_point = $this->getAllProductsPoint($productTypeId); 
     
    709715            } 
    710716        } 
     717 
    711718        return $results; 
    712719    } 
     
    727734            } 
    728735        } 
     736 
    729737        return array_keys($this->cartSession); 
    730738    } 
Note: See TracChangeset for help on using the changeset viewer.