Ignore:
Timestamp:
2012/02/17 00:50:05 (14 years ago)
Author:
Seasoft
Message:

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

  • Zend Framework PHP 標準コーディング規約への準拠を高めた。(主に「Switch」の項)
File:
1 edited

Legend:

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

    r21515 r21526  
    242242        switch ($this->backend) { 
    243243            // PEAR::Mail_mail#send は、(他のメーラーバックエンドと異なり) 第1引数を To: として扱う。Cc: や Bcc: は、ヘッダー情報から処理する。 
    244         case 'mail': 
    245             return $this->to; 
    246             break; 
    247         case 'sendmail': 
    248         case 'smtp': 
    249         default: 
    250             return $this->arrRecip; 
    251             break; 
     244            case 'mail': 
     245                return $this->to; 
     246 
     247            case 'sendmail': 
     248            case 'smtp': 
     249            default: 
     250                return $this->arrRecip; 
    252251        } 
    253252    } 
     
    290289    function getBackendParams($backend) { 
    291290        switch ($backend) { 
    292         case 'mail': 
    293             $arrParams = array(); 
    294             break; 
    295         case 'sendmail': 
    296             $arrParams = array('sendmail_path' => '/usr/bin/sendmail', 
    297                                'sendmail_args' => '-i' 
    298                                ); 
    299             break; 
    300         case 'smtp': 
    301         default: 
    302             $arrParams = array( 
    303                                'host' => $this->host, 
    304                                'port' => $this->port 
    305                                ); 
    306             break; 
     291            case 'mail': 
     292                $arrParams = array(); 
     293                break; 
     294            case 'sendmail': 
     295                $arrParams = array('sendmail_path' => '/usr/bin/sendmail', 
     296                                   'sendmail_args' => '-i' 
     297                                   ); 
     298                break; 
     299            case 'smtp': 
     300            default: 
     301                $arrParams = array( 
     302                                   'host' => $this->host, 
     303                                   'port' => $this->port 
     304                                   ); 
     305                break; 
    307306        } 
    308307        return $arrParams; 
Note: See TracChangeset for help on using the changeset viewer.