HomeHelpTrac

Ignore:
Timestamp:
06/07/11 23:41:51 (12 months ago)
Author:
Alexander Trofimov
Message:

Code cleaning:

  • converting new lines to \n
  • deleting spaces at the end of every line
  • converting all tabs to 4 spaces
  • automated script for future cleaning was added
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc/BxDolXMLRPCProfileView.php

    r14920 r15211  
    66{ 
    77    function BxDolXMLRPCProfileView($iProfileId) 
    8     {         
     8    { 
    99        BxBaseProfileGenerator::BxBaseProfileGenerator ((int)$iProfileId); 
    1010    } 
    1111 
    12     function getProfileInfoExtra()  
     12    function getProfileInfoExtra() 
    1313    { 
    1414        $aRet = array(); 
     
    2323    } 
    2424 
    25     function getProfileInfoBlock($sCaption, $sContent)  
     25    function getProfileInfoBlock($sCaption, $sContent) 
    2626    { 
    2727        global $site; 
     
    3636 
    3737        $aRet = array (); 
    38         foreach( $aItems as $aItem ) {             
     38        foreach( $aItems as $aItem ) { 
    3939 
    4040            $sValue1 = $this->oPF->getViewableValue( $aItem, $this->_aProfile[ $aItem['Name'] ] ); 
    4141 
    42             if ($aItem['Name'] == 'Age')  
     42            if ($aItem['Name'] == 'Age') 
    4343            { 
    4444                $sValue1 = (isset($this->_aProfile['DateOfBirth'])) ? age($this->_aProfile['DateOfBirth']) : _t("_uknown"); 
     
    5454            $aStruct['Value1'] = new xmlrpcval (strip_tags($sValue1)); 
    5555 
    56             if ($this->bCouple)  
     56            if ($this->bCouple) 
    5757            { 
    58                 if (!in_array( $aItem['Name'], $this->aCoupleMutualItems))  
     58                if (!in_array( $aItem['Name'], $this->aCoupleMutualItems)) 
    5959                { 
    6060                    $sValue2 = $this->oPF->getViewableValue($aItem, $this->_aCouple[$aItem['Name']]); 
    6161                    $aStruct['Value1'] = new xmlrpcval (strip_tags($sValue1)); 
    6262                } 
    63             }  
     63            } 
    6464 
    6565            $aRet[] = new xmlrpcval ($aStruct, "struct"); 
    6666        } 
    67          
     67 
    6868        return new xmlrpcval (array ( 
    6969            'Info' => new xmlrpcval ($aRet, "array"), 
    7070            'Title' => new xmlrpcval (_t($sCaption)), 
    7171        ), "struct"); 
    72     }     
     72    } 
    7373} 
    7474 
Note: See TracChangeset for help on using the changeset viewer.