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/SC_Image.php

    r21420 r21441  
    100100        if ($tmpMH) $MH = $tmpMH; // $MHに最大縦幅セット 
    101101 
    102         if (empty($FromImgPath) || empty($ToImgPath)){ 
     102        if (empty($FromImgPath) || empty($ToImgPath)) { 
    103103            return array(0,"出力元画像パス、または出力先フォルダが指定されていません。"); 
    104104        } 
    105105 
    106         if (!file_exists($FromImgPath)){ 
     106        if (!file_exists($FromImgPath)) { 
    107107            return array(0,"出力元画像が見つかりません。"); 
    108108        } 
     
    118118        $tmp_w = $size[0] / $MW; 
    119119 
    120         if ($MH != 0){ 
     120        if ($MH != 0) { 
    121121            $tmp_h = $size[1] / $MH; 
    122122        } 
    123123 
    124         if ($tmp_w > 1 || $tmp_h > 1){ 
    125             if ($MH == 0){ 
    126                 if ($tmp_w > 1){ 
     124        if ($tmp_w > 1 || $tmp_h > 1) { 
     125            if ($MH == 0) { 
     126                if ($tmp_w > 1) { 
    127127                    $re_size[0] = $MW; 
    128128                    $re_size[1] = $size[1] * $MW / $size[0]; 
    129129                } 
    130130            } else { 
    131                 if ($tmp_w > $tmp_h){ 
     131                if ($tmp_w > $tmp_h) { 
    132132                    $re_size[0] = $MW; 
    133133                    $re_size[1] = $size[1] * $MW / $size[0]; 
     
    146146        $ImgNew = imagecreatetruecolor($re_size[0],$re_size[1]); 
    147147 
    148         switch($size[2]) { 
     148        switch ($size[2]) { 
    149149        case "1": //gif形式 
    150             if ($tmp_w <= 1 && $tmp_h <= 1){ 
     150            if ($tmp_w <= 1 && $tmp_h <= 1) { 
    151151                if ($newFileName) { 
    152152                    $ToFile = $newFileName; 
    153                 } elseif  ($ext) { 
     153                } elseif ($ext) { 
    154154                    $ToFile .= "." . $ext; 
    155155                } else { 
Note: See TracChangeset for help on using the changeset viewer.