Show
Ignore:
Timestamp:
12/06/07 23:11:20 (1 year ago)
Author:
mikey
Message:

fixed a bunch of coding style issues detected with new coding style check mechanism

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/lang/stubBaseObject.php

    r1023 r1127  
    112112    public function __toString() 
    113113    { 
    114         return self::getStringRepresentationOf($this, $this->_extractProperties($this)); 
     114        return self::getStringRepresentationOf($this, self::_extractProperties($this)); 
    115115    } 
    116116 
     
    124124     * @return  array<string,mixed> 
    125125     */ 
    126     protected function _extractProperties($object) 
     126    protected static function _extractProperties($object) 
    127127    { 
    128128        $properties      = (array) $object; 
     
    167167    { 
    168168        if (null === $properties) { 
    169             $properties = $this->_extractProperties($object); 
     169            $properties = self::_extractProperties($object); 
    170170        } 
    171171 
     
    211211    private static function _determineType(&$value) 
    212212    { 
    213         if (is_object($value) == false) { 
    214             if (is_resource($value) == false) { 
    215                 return gettype($value); 
    216            
    217  
    218             return 'resource[' . get_resource_type($value) . ']'; 
    219        
    220  
    221         if ($value instanceof stubObject) { 
    222             return $value->getClassName(); 
    223        
    224  
    225         return get_class($value); 
     213        if (is_object($value) === false) { 
     214            if (is_resource($value) === false) { 
     215                return gettype($value); 
     216           
     217 
     218            return 'resource[' . get_resource_type($value) . ']'; 
     219       
     220 
     221        if ($value instanceof stubObject) { 
     222            return $value->getClassName(); 
     223       
     224 
     225        return get_class($value); 
    226226    } 
    227227}