Ignore:
Timestamp:
2012/02/06 21:27:04 (12 years ago)
Author:
Seasoft
Message:

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

  • 無意味なスペースを削除
File:
1 edited

Legend:

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

    r21442 r21444  
    550550    /*          1.開始年月日 (YYYY/MM/DD 000000) 
    551551    /*            2.終了年月日 (YYYY/MM/DD 235959) 
    552     /*            3.エラー ( 0 = OK, 1 = NG ) 
     552    /*            3.エラー ( 0 = OK, 1 = NG) 
    553553    /*-----------------------------------------------------------------*/ 
    554     function sfCheckSetTerm ( $start_year, $start_month, $start_day, $end_year, $end_month, $end_day ) { 
     554    function sfCheckSetTerm ( $start_year, $start_month, $start_day, $end_year, $end_month, $end_day) { 
    555555 
    556556        // 期間指定 
    557557        $error = 0; 
    558558        if ($start_month || $start_day || $start_year) { 
    559             if ( ! checkdate($start_month, $start_day , $start_year) ) $error = 1; 
     559            if ( ! checkdate($start_month, $start_day , $start_year)) $error = 1; 
    560560        } else { 
    561561            $error = 1; 
    562562        } 
    563563        if ($end_month || $end_day || $end_year) { 
    564             if ( ! checkdate($end_month ,$end_day ,$end_year) ) $error = 2; 
     564            if ( ! checkdate($end_month ,$end_day ,$end_year)) $error = 2; 
    565565        } 
    566566        if (! $error) { 
     
    10381038        $vals = array_values($arrValues); 
    10391039 
    1040         $max = max( count( $keys ), count( $vals ) ); 
     1040        $max = max( count( $keys ), count( $vals )); 
    10411041        $combine_ary = array(); 
    10421042        for ($i=0; $i<$max; $i++) { 
     
    11451145        } 
    11461146 
    1147         $fileArray=glob( $src."*" ); 
     1147        $fileArray=glob( $src."*"); 
    11481148        if (is_array($fileArray)) { 
    11491149            foreach ($fileArray as $key => $data_) { 
     
    11611161                mb_ereg("^(.*[\/])(.*)",$data_, $matches); 
    11621162                $data=$matches[2]; 
    1163                 if (is_dir( $data_ )) { 
     1163                if (is_dir( $data_)) { 
    11641164                    $mess = SC_Utils_Ex::sfCopyDir( $data_.'/', $des.$data.'/', $mess); 
    11651165                } else { 
     
    11731173                        } 
    11741174                    } 
    1175                     $mod=stat($data_ ); 
     1175                    $mod=stat($data_); 
    11761176                } 
    11771177            } 
     
    15901590        $str = ""; 
    15911591        // バイナリモードでオープン 
    1592         $fp = @fopen($filename, 'rb' ); 
     1592        $fp = @fopen($filename, 'rb'); 
    15931593        //ファイル内容を全て変数に読み込む 
    15941594        if ($fp) { 
     
    16101610            if (is_array($arrayIndex) && 0 < count($arrayIndex)) { 
    16111611                for ($j = 0; $j < count($arrayIndex); $j++) { 
    1612                     if ( $j > 0 ) $return .= ","; 
     1612                    if ( $j > 0) $return .= ","; 
    16131613                    $return .= "\""; 
    1614                     $return .= mb_ereg_replace("<","<",mb_ereg_replace( "\"","\"\"",$array[$i][$arrayIndex[$j]] )) ."\""; 
     1614                    $return .= mb_ereg_replace("<","<",mb_ereg_replace( "\"","\"\"",$array[$i][$arrayIndex[$j]])) ."\""; 
    16151615                } 
    16161616            } else { 
    16171617                for ($j = 0; $j < count($array[$i]); $j++) { 
    1618                     if ( $j > 0 ) $return .= ","; 
     1618                    if ( $j > 0) $return .= ","; 
    16191619                    $return .= "\""; 
    1620                     $return .= mb_ereg_replace("<","<",mb_ereg_replace( "\"","\"\"",$array[$i][$j] )) ."\""; 
     1620                    $return .= mb_ereg_replace("<","<",mb_ereg_replace( "\"","\"\"",$array[$i][$j])) ."\""; 
    16211621                } 
    16221622            } 
Note: See TracChangeset for help on using the changeset viewer.