Ignore:
Timestamp:
2012/02/06 11:27:03 (14 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

    r21441 r21442  
    4040        if (!defined('ECCUBE_INSTALL')) { 
    4141            $phpself = $_SERVER['PHP_SELF']; 
    42             if (strpos('/install/', $phpself) === false ) { 
     42            if (strpos('/install/', $phpself) === false) { 
    4343                $path = substr($phpself, 0, strpos($phpself, basename($phpself))); 
    4444                $install_url = SC_Utils_Ex::searchInstallerPath($path); 
     
    197197        // 「リファラ無」 の場合はスルー 
    198198        // 「リファラ有」 かつ 「管理画面からの遷移でない」 場合にエラー画面を表示する 
    199         if (empty($_SERVER['HTTP_REFERER']) ) { 
     199        if (empty($_SERVER['HTTP_REFERER'])) { 
    200200            // TODO 警告表示させる? 
    201201            // sfErrorHeader('>> referrerが無効になっています。'); 
     
    253253        // 前画面からPOSTされるuniqidが正しいものかどうかをチェック 
    254254        $uniqid = $objSess->getUniqId(); 
    255         if (!empty($_POST['uniqid']) && ($_POST['uniqid'] === $uniqid) ) { 
     255        if (!empty($_POST['uniqid']) && ($_POST['uniqid'] === $uniqid)) { 
    256256            return true; 
    257257        } else { 
     
    564564            if ( ! checkdate($end_month ,$end_day ,$end_year) ) $error = 2; 
    565565        } 
    566         if (! $error ) { 
     566        if (! $error) { 
    567567            $date1 = $start_year ."/".sprintf("%02d",$start_month) ."/".sprintf("%02d",$start_day) ." 000000"; 
    568568            $date2 = $end_year   ."/".sprintf("%02d",$end_month)   ."/".sprintf("%02d",$end_day)   ." 235959"; 
     
    597597 
    598598    function sfGetEnabled($val) { 
    599         if (! $val ) { 
     599        if (! $val) { 
    600600            return " disabled=\"disabled\""; 
    601601        } 
     
    11471147        $fileArray=glob( $src."*" ); 
    11481148        if (is_array($fileArray)) { 
    1149             foreach ($fileArray as $key => $data_ ) { 
     1149            foreach ($fileArray as $key => $data_) { 
    11501150                // CVS管理ファイルはコピーしない 
    11511151                if (ereg("/CVS/Entries", $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 { 
     
    16091609            // インデックスが設定されている場合 
    16101610            if (is_array($arrayIndex) && 0 < count($arrayIndex)) { 
    1611                 for ($j = 0; $j < count($arrayIndex); $j++ ) { 
     1611                for ($j = 0; $j < count($arrayIndex); $j++) { 
    16121612                    if ( $j > 0 ) $return .= ","; 
    16131613                    $return .= "\""; 
     
    16151615                } 
    16161616            } else { 
    1617                 for ($j = 0; $j < count($array[$i]); $j++ ) { 
     1617                for ($j = 0; $j < count($array[$i]); $j++) { 
    16181618                    if ( $j > 0 ) $return .= ","; 
    16191619                    $return .= "\""; 
Note: See TracChangeset for help on using the changeset viewer.