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/lib/Doctrine.php

    r2951 r2963  
    350350     */ 
    351351    const HYDRATE_RECORD            = 2; 
    352      
     352 
    353353    /** 
    354354     * HYDRATE_ARRAY 
     
    737737    public static function createDatabases($specifiedConnections = array()) 
    738738    { 
    739         if (!is_array($specifiedConnections)) { 
     739        if ( ! is_array($specifiedConnections)) { 
    740740            $specifiedConnections = (array) $specifiedConnections; 
    741741        } 
     
    745745         
    746746        foreach ($connections as $name => $connection) { 
    747             if (!empty($specifiedConnections) && !in_array($name, $specifiedConnections)) { 
     747            if ( ! empty($specifiedConnections) && !in_array($name, $specifiedConnections)) { 
    748748                continue; 
    749749            } 
     
    784784    public static function dropDatabases($specifiedConnections = array()) 
    785785    { 
    786         if (!is_array($specifiedConnections)) { 
     786        if ( ! is_array($specifiedConnections)) { 
    787787            $specifiedConnections = (array) $specifiedConnections; 
    788788        } 
     
    793793         
    794794        foreach ($connections as $name => $connection) { 
    795             if (!empty($specifiedConnections) && !in_array($name, $specifiedConnections)) { 
     795            if ( ! empty($specifiedConnections) && !in_array($name, $specifiedConnections)) { 
    796796                continue; 
    797797            } 
     
    835835        $data = new Doctrine_Data(); 
    836836         
    837         if (!$append) { 
     837        if ( ! $append) { 
    838838            $data->purge(); 
    839839        } 
     
    855855        $data = new Doctrine_Data(); 
    856856 
    857         if (!$append) { 
     857        if ( ! $append) { 
    858858          $data->purge(); 
    859859        } 
     
    861861        return $data->importDummyData($num); 
    862862    } 
    863      
     863 
    864864    /** 
    865865     * migrate 
     
    921921        return $builder->generateMigrationsFromModels($modelsPath); 
    922922    } 
    923      
     923 
    924924    /** 
    925925     * getTable 
     
    932932        return Doctrine_Manager::table($tableName); 
    933933    } 
    934      
     934 
    935935    /** 
    936936     * connection 
     
    944944        return Doctrine_Manager::connection($adapter, $name); 
    945945    } 
    946      
     946 
    947947    /** 
    948948     * fileFinder 
     
    955955        return Doctrine_FileFinder::type($type); 
    956956    } 
    957      
     957 
    958958    /** 
    959959     * compile 
     
    971971        return Doctrine_Compiler::compile($target, $includedDrivers); 
    972972    } 
    973      
     973 
    974974    /** 
    975975     * simple autoload function 
     
    999999        return true; 
    10001000    } 
    1001      
     1001 
    10021002    /** 
    10031003     * dump 
     
    10311031        return implode("\n", $ret); 
    10321032    } 
    1033      
     1033 
    10341034    /** 
    10351035     * returns table name from class name 
     
    10421042         return strtolower(preg_replace('~(?<=\\w)([A-Z])~', '_$1', $classname)); 
    10431043    } 
    1044      
     1044 
    10451045    /** 
    10461046     * returns class name from table name 
     
    10531053        return preg_replace_callback('~(_?)(_)([\w])~', array("Doctrine", "classifyCallback"), ucfirst($tablename)); 
    10541054    } 
    1055      
     1055 
    10561056    /** 
    10571057     * Callback function to classify a classname propperly.  
     
    10641064        return $matches[1] . strtoupper($matches[3]); 
    10651065    } 
    1066      
     1066 
    10671067    /** 
    10681068     * checks for valid class name (uses camel case and underscores)