Changeset 2963 for trunk/vendor/PEAR.php

Show
Ignore:
Timestamp:
10/21/07 07:23:59 (15 months ago)
Author:
jwage
Message:

Mass search and replace for coding standards changes, doc block formatting, and code spacing.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/vendor/PEAR.php

    r1127 r2963  
    5454 
    5555// instant backwards compatibility 
    56 if (!defined('PATH_SEPARATOR')) { 
     56if ( ! defined('PATH_SEPARATOR')) { 
    5757    if (OS_WINDOWS) { 
    5858        define('PATH_SEPARATOR', ';'); 
     
    182182                global $_PEAR_destructor_object_list; 
    183183                $_PEAR_destructor_object_list[] = &$this; 
    184                 if (!isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) { 
     184                if ( ! isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) { 
    185185                    register_shutdown_function("_PEAR_call_destructors"); 
    186186                    $GLOBALS['_PEAR_SHUTDOWN_REGISTERED'] = true; 
     
    231231    { 
    232232        static $properties; 
    233         if (!isset($properties[$class])) { 
     233        if ( ! isset($properties[$class])) { 
    234234            $properties[$class] = array(); 
    235235        } 
    236         if (!array_key_exists($var, $properties[$class])) { 
     236        if ( ! array_key_exists($var, $properties[$class])) { 
    237237            $properties[$class][$var] = null; 
    238238        } 
     
    256256        // if we are called statically, there is a potential 
    257257        // that no shutdown func is registered.  Bug #6445 
    258         if (!isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) { 
     258        if ( ! isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) { 
    259259            register_shutdown_function("_PEAR_call_destructors"); 
    260260            $GLOBALS['_PEAR_SHUTDOWN_REGISTERED'] = true; 
     
    469469            } 
    470470            return $deleted ? true : PEAR::raiseError("The expected error you submitted does not exist"); // IMPROVE ME 
    471         } elseif (!empty($error_code)) { 
     471        } elseif ( ! empty($error_code)) { 
    472472            // $error_code comes alone, trying to unset it 
    473473            if ($this->_checkDelExpect($error_code)) { 
     
    741741    function loadExtension($ext) 
    742742    { 
    743         if (!extension_loaded($ext)) { 
     743        if ( ! extension_loaded($ext)) { 
    744744            // if either returns true dl() will produce a FATAL error, stop that 
    745745            if ((ini_get('enable_dl') != 1) || (ini_get('safe_mode') == 1)) { 
     
    865865        $this->mode      = $mode; 
    866866        $this->userinfo  = $userinfo; 
    867         if (!PEAR::getStaticProperty('PEAR_Error', 'skiptrace')) { 
     867        if ( ! PEAR::getStaticProperty('PEAR_Error', 'skiptrace')) { 
    868868            $this->backtrace = debug_backtrace(); 
    869869            if (isset($this->backtrace[0]) && isset($this->backtrace[0]['object'])) {