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/helper/SC_Helper_Mail.php

    r21420 r21441  
    8383        $objQuery = new SC_Query_Ex(); 
    8484 
    85         if($subject == "" && $header == "" && $footer == "") { 
     85        if ($subject == "" && $header == "" && $footer == "") { 
    8686            // メールテンプレート情報の取得 
    8787            $where = "template_id = ?"; 
     
    132132 
    133133        //その他決済情報 
    134         if($arrOrder['memo02'] != "") { 
     134        if ($arrOrder['memo02'] != "") { 
    135135            $arrOther = unserialize($arrOrder['memo02']); 
    136136 
    137             foreach($arrOther as $other_key => $other_val){ 
    138                 if(SC_Utils_Ex::sfTrim($other_val['value']) == ""){ 
     137            foreach ($arrOther as $other_key => $other_val) { 
     138                if (SC_Utils_Ex::sfTrim($other_val['value']) == "") { 
    139139                    $arrOther[$other_key]['value'] = ""; 
    140140                } 
     
    170170 
    171171        // 送信フラグ:trueの場合は、送信する。 
    172         if($send) { 
     172        if ($send) { 
    173173            if ($objSendMail->sendMail()) { 
    174174                $this->sfSaveMailHistory($order_id, $template_id, $tosubject, $body); 
     
    236236        $sqlval['send_date'] = 'CURRENT_TIMESTAMP'; 
    237237        if (!isset($_SESSION['member_id'])) $_SESSION['member_id'] = ""; 
    238         if($_SESSION['member_id'] != "") { 
     238        if ($_SESSION['member_id'] != "") { 
    239239            $sqlval['creator_id'] = $_SESSION['member_id']; 
    240240        } else { 
     
    256256        $arrRet = $objQuery->select($col, $from, $where, array($email)); 
    257257        // 会員のメールアドレスが登録されている 
    258         if(!empty($arrRet[0]['customer_id'])) { 
     258        if (!empty($arrRet[0]['customer_id'])) { 
    259259            return true; 
    260260        } 
     
    272272    function sfSendRegistMail($secret_key, $customer_id = '', $is_mobile = false) { 
    273273        // 会員データの取得 
    274         if(SC_Utils_Ex::sfIsInt($customer_id)) { 
     274        if (SC_Utils_Ex::sfIsInt($customer_id)) { 
    275275            $arrCustomerData = SC_Helper_Customer_Ex::sfGetCustomerDataFromId($customer_id); 
    276         }else{ 
     276        } else { 
    277277            $arrCustomerData = SC_Helper_Customer_Ex::sfGetCustomerDataFromId('', "secret_key = ?", array($secret_key)); 
    278278        } 
    279         if(SC_Utils_Ex::isBlank($arrCustomerData)) { 
     279        if (SC_Utils_Ex::isBlank($arrCustomerData)) { 
    280280            return false; 
    281281        } 
     
    294294 
    295295        // 仮会員が有効の場合 
    296         if(CUSTOMER_CONFIRM_MAIL == true and $arrCustomerData['status'] == 1) { 
     296        if (CUSTOMER_CONFIRM_MAIL == true and $arrCustomerData['status'] == 1) { 
    297297            $subject        = $objHelperMail->sfMakeSubject('会員登録のご確認', $objMailText); 
    298298            $toCustomerMail = $objMailText->fetch("mail_templates/customer_mail.tpl"); 
     
    315315        ); 
    316316        // 宛先の設定 
    317         if($is_mobile) { 
     317        if ($is_mobile) { 
    318318            $to_addr = $arrCustomerData["email_mobile"]; 
    319         }else{ 
     319        } else { 
    320320            $to_addr = $arrCustomerData['email']; 
    321321        } 
Note: See TracChangeset for help on using the changeset viewer.