Ignore:
Timestamp:
2012/02/06 11:05:15 (12 years ago)
Author:
Seasoft
Message:

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

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

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Category.php

    r21420 r21441  
    6363    function action() { 
    6464        // モバイル判定 
    65         switch ( SC_Display_Ex::detectDevice() ) { 
     65        switch (SC_Display_Ex::detectDevice() ) { 
    6666            case DEVICE_TYPE_MOBILE: 
    6767                // メインカテゴリの取得 
     
    9595            // 商品ID取得 
    9696        $product_id = ''; 
    97         if ( isset($arrRequest['product_id']) && $arrRequest['product_id'] != '' && is_numeric($arrRequest['product_id']) ) { 
     97        if (isset($arrRequest['product_id']) && $arrRequest['product_id'] != '' && is_numeric($arrRequest['product_id']) ) { 
    9898            $product_id = $arrRequest['product_id']; 
    9999        } 
    100100        // カテゴリID取得 
    101101        $category_id = ''; 
    102         if ( isset($arrRequest['category_id']) && $arrRequest['category_id'] != '' && is_numeric($arrRequest['category_id']) ) { 
     102        if (isset($arrRequest['category_id']) && $arrRequest['category_id'] != '' && is_numeric($arrRequest['category_id']) ) { 
    103103            $category_id = $arrRequest['category_id']; 
    104104        } 
     
    125125        $from = 'dtb_category left join dtb_category_total_count using (category_id)'; 
    126126        // 登録商品数のチェック 
    127         if($count_check) { 
     127        if ($count_check) { 
    128128            $where = 'del_flg = 0 AND product_count > 0'; 
    129129        } else { 
     
    153153            $this->root_parent_id[] = $arrParentID[0]; 
    154154            $arrDispID = array_merge($arrBrothersID, $arrChildrenID); 
    155             foreach($arrRet as $key => $array) { 
    156                 foreach($arrDispID as $val) { 
    157                     if($array['category_id'] == $val) { 
     155            foreach ($arrRet as $key => $array) { 
     156                foreach ($arrDispID as $val) { 
     157                    if ($array['category_id'] == $val) { 
    158158                        $arrRet[$key]['display'] = 1; 
    159159                        break; 
     
    178178        $where = 'level <= 2 AND del_flg = 0'; 
    179179        // 登録商品数のチェック 
    180         if($count_check) { 
     180        if ($count_check) { 
    181181            $where .= ' AND product_count > 0'; 
    182182        } 
Note: See TracChangeset for help on using the changeset viewer.