Changeset 1688 in subversion


Ignore:
Timestamp:
Aug 28, 2008 5:57:49 AM (5 years ago)
Author:
thomasb
Message:

Codestyle + indentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcube_template.php

    r1660 r1688  
    481481     * @param  string Input string to parse 
    482482     * @return string Altered input string 
     483     * @todo   Use DOM-parser to traverse template HTML 
    483484     * @todo   Maybe a cache. 
    484485     */ 
     
    495496    private function xml_command_callback($matches) 
    496497    { 
    497         if (isset($matches[2])) { 
    498             $str_attrib = $matches[2]; 
    499         } else { 
    500             $str_attrib = ''; 
    501         } 
    502  
    503         if (isset($matches[3])) { 
    504             $add_attrib = $matches[3]; 
    505         } else { 
    506             $add_attrib = array(); 
    507         } 
    508  
    509         $command = $matches[1]; 
    510         //matches[0] is the entire matched portion of the string 
    511  
    512         return $this->xml_command($command, $str_attrib, $add_attrib); 
     498        $str_attrib = isset($matches[2]) ? $matches[2] : ''; 
     499        $add_attrib = isset($matches[3]) ? $matches[3] : array(); 
     500 
     501        $command = $matches[1]; 
     502        //matches[0] is the entire matched portion of the string 
     503 
     504        return $this->xml_command($command, $str_attrib, $add_attrib); 
    513505    } 
    514506 
Note: See TracChangeset for help on using the changeset viewer.