Ignore:
Timestamp:
2012/02/17 00:50:05 (12 years ago)
Author:
Seasoft
Message:

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

  • Zend Framework PHP 標準コーディング規約への準拠を高めた。(主に「Switch」の項)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/rss/LC_Page_Rss_Products.php

    r21514 r21526  
    7979        $mode = $this->getMode(); 
    8080        switch ($mode) { 
    81         case 'all': 
    82             $arrProducts = $this->lfGetProductsDetailData($mode, $product_id); 
    83             break; 
    84         case 'list': 
    85             if ($product_id != '' && is_numeric($product_id)) { 
     81            case 'all': 
    8682                $arrProducts = $this->lfGetProductsDetailData($mode, $product_id); 
    87             } else { 
    88                 $arrProducts = $this->lfGetProductsListData(); 
    89             } 
    90             break; 
    91         default: 
    92             if ($product_id != '' && is_numeric($product_id)) { 
    93                 $arrProducts = $this->lfGetProductsDetailData($mode, $product_id); 
    94             } else { 
    95                 $arrProducts = $this->lfGetProductsAllData(); 
    96             } 
    97             break; 
     83                break; 
     84            case 'list': 
     85                if ($product_id != '' && is_numeric($product_id)) { 
     86                    $arrProducts = $this->lfGetProductsDetailData($mode, $product_id); 
     87                } else { 
     88                    $arrProducts = $this->lfGetProductsListData(); 
     89                } 
     90                break; 
     91            default: 
     92                if ($product_id != '' && is_numeric($product_id)) { 
     93                    $arrProducts = $this->lfGetProductsDetailData($mode, $product_id); 
     94                } else { 
     95                    $arrProducts = $this->lfGetProductsAllData(); 
     96                } 
     97                break; 
    9898        } 
    9999 
Note: See TracChangeset for help on using the changeset viewer.