Ignore:
Timestamp:
2012/03/06 22:37:30 (14 years ago)
Author:
Seasoft
Message:

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

File:
1 edited

Legend:

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

    r21595 r21596  
    104104        $cur_idx = 0; 
    105105        // ツリーを初めから全検索する 
    106         for($iLoop=0; $iLoop < count($this->arrElementTree); $iLoop++){ 
     106        for ($iLoop=0; $iLoop < count($this->arrElementTree); $iLoop++) { 
    107107            if (preg_match($regex, $this->arrElementTree[$iLoop][0])) { 
    108108                // インデックスが指定されていない(見つけたエレメント全て)、もしくは指定されたインデックスなら選択する 
     
    146146            $cur_idx = 0; 
    147147            // 親エレメント位置からツリーを検索する 
    148             for($iLoop=$objElement[0]; $iLoop < count($this->arrElementTree); $iLoop++){ 
     148            for ($iLoop=$objElement[0]; $iLoop < count($this->arrElementTree); $iLoop++) { 
    149149                if (preg_match($regex, $this->arrElementTree[$iLoop][0])) { 
    150150                    // インデックスが指定されていない(見つけたエレメント全て)、もしくは指定されたインデックスなら選択する 
     
    179179        if ($this->search_depth >= $back_num) { 
    180180            $this->search_depth -= $back_num; 
    181         }else{ 
     181        } else { 
    182182            $this->search_depth = 0; 
    183183        } 
     
    278278        if (count($this->arrErr)) { 
    279279            // エラーメッセージ組み立て 
    280             $err_msg = ""; 
     280            $err_msg = ''; 
    281281            foreach ($this->arrErr as $arrErr) { 
    282282                if ($arrErr['err_msg']) { 
    283                     $err_msg .= "<br />".$arrErr['err_msg']; 
     283                    $err_msg .= '<br />'.$arrErr['err_msg']; 
    284284                } else { 
    285285                    if ($arrErr['type'] == self::ERR_TARGET_ELEMENT_NOT_FOUND) { 
    286286                        $err_msg .= "<br />${arrErr['selector']} が存在しません"; 
    287287                    } else { 
    288                         $err_msg .= "<br />".print_r($arrErr, true); 
     288                        $err_msg .= '<br />'.print_r($arrErr, true); 
    289289                    } 
    290290                } 
     
    507507 
    508508        $objElement = false; 
    509         if(isset($this->arrElementTree[$target_key]) && $this->arrElementTree[$target_key][0]){ 
     509        if (isset($this->arrElementTree[$target_key]) && $this->arrElementTree[$target_key][0]) { 
    510510            $objElement = &$this->arrElementTree[$target_key][1]; 
    511511        } 
     
    514514 
    515515        try { 
    516             switch ($mode){ 
     516            switch ($mode) { 
    517517                case 'appendFirst': 
    518518                    if ($objElement->hasChildNodes()) { 
     
    532532                    if ($objElement->nextSibling) { 
    533533                         $objElement->parentNode->insertBefore($objSnip, $objElement->nextSibling); 
    534                     } 
    535                     else { 
     534                    } else { 
    536535                         $objElement->parentNode->appendChild($objSnip); 
    537536                    } 
     
    570569    } 
    571570} 
    572  
    573 ?> 
Note: See TracChangeset for help on using the changeset viewer.