Changeset 23502


Ignore:
Timestamp:
2014/06/03 14:00:32 (10 years ago)
Author:
shutta
Message:

#2448 typo修正・ソース整形・ソースコメントの改善 for 2.13.3

Location:
branches/version-2_13-dev/data/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/class/pages/shopping/LC_Page_Shopping.php

    r23497 r23502  
    4949        $this->tpl_onload = 'eccube.toggleDeliveryForm();'; 
    5050 
    51         $objDate = new SC_Date_Ex(BIRTH_YEAR, date('Y',strtotime('now'))); 
     51        $objDate = new SC_Date_Ex(BIRTH_YEAR, date('Y', strtotime('now'))); 
    5252        $this->arrYear = $objDate->getYear('', START_BIRTH_YEAR, ''); 
    5353        $this->arrMonth = $objDate->getMonth(true); 
     
    299299    { 
    300300        $objFormParam->addParam('記憶する', 'login_memory', INT_LEN, 'n', array('MAX_LENGTH_CHECK', 'NUM_CHECK')); 
    301         $objFormParam->addParam('メールアドレス', 'login_email', '' , 'a', array('EXIST_CHECK', 'EMAIL_CHECK', 'SPTAB_CHECK' ,'EMAIL_CHAR_CHECK')); 
     301        $objFormParam->addParam('メールアドレス', 'login_email', '', 'a', array('EXIST_CHECK', 'EMAIL_CHECK', 'SPTAB_CHECK', 'EMAIL_CHAR_CHECK')); 
    302302        $objFormParam->addParam('パスワード', 'login_pass', PASSWORD_MAX_LEN, '', array('EXIST_CHECK', 'MAX_LENGTH_CHECK', 'SPTAB_CHECK')); 
    303303 
  • branches/version-2_13-dev/data/class/util/SC_Utils.php

    r23501 r23502  
    343343 
    344344        if (mb_internal_encoding() == CHAR_CODE) { 
    345             $data = mb_convert_encoding($data,'SJIS-Win',CHAR_CODE); 
     345            $data = mb_convert_encoding($data, 'SJIS-Win', CHAR_CODE); 
    346346        } 
    347347 
     
    619619        $error = 0; 
    620620        if ($start_month || $start_day || $start_year) { 
    621             if (! checkdate($start_month, $start_day , $start_year)) $error = 1; 
     621            if (! checkdate($start_month, $start_day, $start_year)) $error = 1; 
    622622        } else { 
    623623            $error = 1; 
    624624        } 
    625625        if ($end_month || $end_day || $end_year) { 
    626             if (! checkdate($end_month ,$end_day ,$end_year)) $error = 2; 
     626            if (! checkdate($end_month, $end_day, $end_year)) $error = 2; 
    627627        } 
    628628        if (! $error) { 
    629             $date1 = $start_year .'/'.sprintf('%02d',$start_month) .'/'.sprintf('%02d',$start_day) .' 000000'; 
    630             $date2 = $end_year   .'/'.sprintf('%02d',$end_month)   .'/'.sprintf('%02d',$end_day)   .' 235959'; 
     629            $date1 = $start_year .'/'.sprintf('%02d', $start_month) .'/'.sprintf('%02d', $start_day) .' 000000'; 
     630            $date2 = $end_year   .'/'.sprintf('%02d', $end_month)   .'/'.sprintf('%02d', $end_day)   .' 235959'; 
    631631            if ($date1 > $date2) $error = 3; 
    632632        } else { 
     
    733733    public function sfRound($value, $pow = 0) 
    734734    { 
    735         $adjust = pow(10 ,$pow-1); 
     735        $adjust = pow(10, $pow-1); 
    736736 
    737737        // 整数且つ0でなければ桁数指定を行う 
     
    11031103    public static function sfDBDatetoTime($db_date) 
    11041104    { 
    1105         $date = preg_replace("|\..*$|",'',$db_date); 
     1105        $date = preg_replace("|\..*$|", '', $db_date); 
    11061106        $time = strtotime($date); 
    11071107 
     
    12301230 
    12311231                $matches = array(); 
    1232                 mb_ereg("^(.*[\/])(.*)",$data_, $matches); 
     1232                mb_ereg("^(.*[\/])(.*)", $data_, $matches); 
    12331233                $data=$matches[2]; 
    12341234                if (is_dir($data_)) { 
     
    13201320        foreach ($arrConvList as $key => $val) { 
    13211321            if (isset($array[$key])) { 
    1322                 $array[$key] = mb_convert_kana($array[$key] ,$val); 
     1322                $array[$key] = mb_convert_kana($array[$key], $val); 
    13231323            } 
    13241324        } 
     
    15491549 
    15501550        // 郵便番号検索文作成 
    1551         $zipcode = mb_convert_kana($zipcode ,'n'); 
     1551        $zipcode = mb_convert_kana($zipcode, 'n'); 
    15521552        $sqlse = 'SELECT state, city, town FROM mtb_zip WHERE zipcode = ?'; 
    15531553 
     
    15711571         */ 
    15721572        $town =  $data_list[0]['town']; 
    1573         $town = preg_replace("/(.*)$/",'',$town); 
    1574         $town = preg_replace('/以下に掲載がない場合/','',$town); 
    1575         $town = preg_replace('/(.*?)の次に番地がくる場合/','',$town); 
     1573        $town = preg_replace("/(.*)$/", '', $town); 
     1574        $town = preg_replace('/以下に掲載がない場合/', '', $town); 
     1575        $town = preg_replace('/(.*?)の次に番地がくる場合/', '', $town); 
    15761576        $data_list[0]['town'] = $town; 
    15771577        $data_list[0]['state'] = $arrREV_PREF[$data_list[0]['state']]; 
     
    21102110     * @return bool true = exists / false does not exist 
    21112111     */ 
    2112     public static function checkFileExistsWithInBasePath($file,$base_path) 
    2113     { 
    2114         $arrPath = explode('/', str_replace('\\', '/',$file)); 
    2115         $arrBasePath = explode('/', str_replace('\\', '/',$base_path)); 
    2116         $path_diff = implode("/",array_diff_assoc($arrPath, $arrBasePath)); 
    2117         return file_exists(realpath(str_replace('..','',$base_path . $path_diff))) ? true : false; 
     2112    public static function checkFileExistsWithInBasePath($file, $base_path) 
     2113    { 
     2114        $arrPath = explode('/', str_replace('\\', '/', $file)); 
     2115        $arrBasePath = explode('/', str_replace('\\', '/', $base_path)); 
     2116        $path_diff = implode("/", array_diff_assoc($arrPath, $arrBasePath)); 
     2117        return file_exists(realpath(str_replace('..', '', $base_path . $path_diff))) ? true : false; 
    21182118    } 
    21192119 
     
    21262126    { 
    21272127        $micro = explode(" ", microtime()); 
    2128         $micro_string = explode('.',$micro[0]); 
    2129         return date('Y-m-d H:i:s') . "." . substr($micro_string[1],0,5); 
     2128        $micro_string = explode('.', $micro[0]); 
     2129        return date('Y-m-d H:i:s') . "." . substr($micro_string[1], 0, 5); 
    21302130    } 
    21312131} 
Note: See TracChangeset for help on using the changeset viewer.