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

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

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

Legend:

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

    r21480 r21481  
    175175            $objPage->addDebugMsg($debugMsg); 
    176176        } 
    177         if (function_exists("debug_backtrace")) { 
     177        if (function_exists('debug_backtrace')) { 
    178178            $objPage->backtrace = debug_backtrace(); 
    179179        } 
     
    335335        $cnt = 1; 
    336336        for ($cnt = 1; $cnt <= $max; $cnt++) { 
    337             if ($_POST[$keyname . $cnt] == "1") { 
    338                 $conv.= "1"; 
     337            if ($_POST[$keyname . $cnt] == '1') { 
     338                $conv.= '1'; 
    339339            } else { 
    340                 $conv.= "0"; 
     340                $conv.= '0'; 
    341341            } 
    342342        } 
     
    352352        if (is_array($array)) { 
    353353            foreach ($array as $val) { 
    354                 $arrTmp[$val] = "1"; 
     354                $arrTmp[$val] = '1'; 
    355355            } 
    356356        } 
    357357        for ($i = 1; $i <= $max; $i++) { 
    358             if (isset($arrTmp[$i]) && $arrTmp[$i] == "1") { 
    359                 $ret.= "1"; 
     358            if (isset($arrTmp[$i]) && $arrTmp[$i] == '1') { 
     359                $ret.= '1'; 
    360360            } else { 
    361                 $ret.= "0"; 
     361                $ret.= '0'; 
    362362            } 
    363363        } 
     
    409409        $len = strlen($val); 
    410410        for ($i = 0; $i < $len; $i++) { 
    411             if (substr($val, $i, 1) == "1") { 
     411            if (substr($val, $i, 1) == '1') { 
    412412                $arrRet[] = ($i + 1); 
    413413            } 
     
    424424        $cnt = 1; 
    425425        for ($cnt = 1; $cnt <= $max; $cnt++) { 
    426             if ($_POST[$keyname . $cnt] == "1") { 
    427                 $conv.= "1"; 
     426            if ($_POST[$keyname . $cnt] == '1') { 
     427                $conv.= '1'; 
    428428            } else { 
    429429                $conv.= '_'; 
     
    722722        $where = "product_id = ?"; 
    723723        $objQuery = new SC_Query_Ex(); 
    724         $ret = $objQuery->get("product_class_id", "dtb_products_class", $where, Array($product_id)); 
     724        $ret = $objQuery->get('product_class_id', 'dtb_products_class', $where, Array($product_id)); 
    725725        return $ret; 
    726726    } 
     
    864864 
    865865            $basename = basename($filepath); 
    866             $outpath = $out_dir . "enc_" . $basename; 
     866            $outpath = $out_dir . 'enc_' . $basename; 
    867867 
    868868            $ofp = fopen($outpath, "w+"); 
     
    14241424        // 最上位層を格納(user_data/) 
    14251425        if (sfDirChildExists($dir)) { 
    1426             $arrTree[$cnt]['type'] = "_parent"; 
    1427         } else { 
    1428             $arrTree[$cnt]['type'] = "_child"; 
     1426            $arrTree[$cnt]['type'] = '_parent'; 
     1427        } else { 
     1428            $arrTree[$cnt]['type'] = '_child'; 
    14291429        } 
    14301430        $arrTree[$cnt]['path'] = $dir; 
     
    14681468                            $arrTree[$cnt]['path'] = $path; 
    14691469                            if (sfDirChildExists($path)) { 
    1470                                 $arrTree[$cnt]['type'] = "_parent"; 
     1470                                $arrTree[$cnt]['type'] = '_parent'; 
    14711471                            } else { 
    1472                                 $arrTree[$cnt]['type'] = "_child"; 
     1472                                $arrTree[$cnt]['type'] = '_child'; 
    14731473                            } 
    14741474 
Note: See TracChangeset for help on using the changeset viewer.