Ignore:
Timestamp:
2014/05/03 15:19:46 (10 years ago)
Author:
kimoto
Message:

#2448 (typo修正・ソース整形・ソースコメントの改善 for 2.13.2)
三項演算子が読みにくいので適切な改行を入れる

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php

    r23392 r23393  
    12261226    public function checkInsertOrderProducts(&$objFormParam, $arrProductClassIds, $insert_product_class_id, $arrAddProductInfo) 
    12271227    { 
    1228         if(!$arrProductClassIds || !in_array($insert_product_class_id, $arrProductClassIds)){ 
     1228        if (!$arrProductClassIds || !in_array($insert_product_class_id, $arrProductClassIds)) { 
    12291229            $arrAddProducts = array(); 
    12301230 
    1231             $arrAddProductInfo['product_name'] = ($arrAddProductInfo['product_name'])? 
    1232                                                  $arrAddProductInfo['product_name']:$arrAddProductInfo['name']; 
    1233             $arrAddProductInfo['price']        = ($arrAddProductInfo['price'])? 
    1234                                                  $arrAddProductInfo['price']:$arrAddProductInfo['price02']; 
    1235             $arrAddProductInfo['quantity']     = 1; 
    1236             $arrAddProductInfo['tax_rate']     = ($objFormParam->getValue('order_tax_rate') == '')? 
    1237                                                  $this->arrInfo['tax']     :$objFormParam->getValue('order_tax_rate'); 
    1238             $arrAddProductInfo['tax_rule']     = ($objFormParam->getValue('order_tax_rule') == '')? 
    1239                                                  $this->arrInfo['tax_rule']:$objFormParam->getValue('order_tax_rule'); 
     1231            $arrAddProductInfo['product_name'] = ($arrAddProductInfo['product_name']) 
     1232                ? $arrAddProductInfo['product_name'] 
     1233                : $arrAddProductInfo['name']; 
     1234 
     1235            $arrAddProductInfo['price'] = ($arrAddProductInfo['price']) 
     1236                ? $arrAddProductInfo['price'] 
     1237                : $arrAddProductInfo['price02']; 
     1238 
     1239            $arrAddProductInfo['quantity'] = 1; 
     1240            $arrAddProductInfo['tax_rate'] = ($objFormParam->getValue('order_tax_rate') == '') 
     1241                ? $this->arrInfo['tax'] 
     1242                : $objFormParam->getValue('order_tax_rate'); 
     1243 
     1244            $arrAddProductInfo['tax_rule'] = ($objFormParam->getValue('order_tax_rule') == '') 
     1245                ? $this->arrInfo['tax_rule'] 
     1246                : $objFormParam->getValue('order_tax_rule'); 
     1247 
    12401248            foreach ($this->arrProductKeys as $insert_key) { 
    12411249                $value = $objFormParam->getValue($insert_key); 
Note: See TracChangeset for help on using the changeset viewer.