Ignore:
Timestamp:
2012/02/06 11:05:15 (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/GC_Utils.php

    r21420 r21441  
    4848 
    4949        $return = $header.$contents; 
    50         if (mb_detect_encoding($return) == CHAR_CODE){ 
     50        if (mb_detect_encoding($return) == CHAR_CODE) { 
    5151            // 文字コード変換 
    5252            $return = mb_convert_encoding($return,'SJIS',CHAR_CODE); 
     
    6969 
    7070        $return = ""; 
    71         for ($i=0; $i<count($array); $i++){ 
    72  
    73             for ($j=0; $j<count($array[$i]); $j++ ){ 
     71        for ($i=0; $i<count($array); $i++) { 
     72 
     73            for ($j=0; $j<count($array[$i]); $j++ ) { 
    7474                if ( $j > 0 ) $return .= ","; 
    7575                $return .= "\""; 
    76                 if ( $arrayIndex ){ 
     76                if ($arrayIndex ) { 
    7777                    $return .= mb_ereg_replace("<","<",mb_ereg_replace( "\"","\"\"",$array[$i][$arrayIndex[$j]] )) ."\""; 
    7878                } else { 
     
    131131        $traces = debug_backtrace(false); 
    132132        $bklv = 1; 
    133         if ( $forLogInfo === true ){ 
     133        if ($forLogInfo === true ) { 
    134134            $bklv = 3; 
    135135            if( ($traces[3]['class'] === 'LC_Page' 
     
    231231 
    232232        $fp = fopen($path, "a+"); 
    233         if($fp) { 
     233        if ($fp) { 
    234234            fwrite( $fp, $today." [".$_SERVER['PHP_SELF']."] ".$mess." from ". $_SERVER['REMOTE_ADDR']. "\n" ); 
    235235            fclose( $fp ); 
     
    297297 
    298298        $password = ""; 
    299         for($i = 0; $i<$pwLength; $i++ ) { 
     299        for ($i = 0; $i<$pwLength; $i++ ) { 
    300300            $password .= $pw[array_rand($pw, 1)]; 
    301301        } 
Note: See TracChangeset for help on using the changeset viewer.