Ignore:
Timestamp:
2012/02/06 21:38:41 (14 years ago)
Author:
Seasoft
Message:

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

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

Legend:

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

    r21445 r21446  
    552552    /*            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_)) { 
    1164                     $mess = SC_Utils_Ex::sfCopyDir( $data_.'/', $des.$data.'/', $mess); 
     1163                if (is_dir($data_)) { 
     1164                    $mess = SC_Utils_Ex::sfCopyDir($data_.'/', $des.$data.'/', $mess); 
    11651165                } else { 
    11661166                    if (!$override && file_exists($des.$data)) { 
    11671167                        $mess.= $des.$data . ":ファイルが存在します\n"; 
    11681168                    } else { 
    1169                         if (@copy( $data_, $des.$data)) { 
     1169                        if (@copy($data_, $des.$data)) { 
    11701170                            $mess.= $des.$data . ":コピー成功\n"; 
    11711171                        } else { 
     
    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.