Author: sevein
Date: Tue Aug  7 13:53:14 2012
New Revision: 12049

Log:
Cosmetic change

Modified:
   trunk/lib/QubitFlatfileImport.class.php

Modified: trunk/lib/QubitFlatfileImport.class.php
==============================================================================
--- trunk/lib/QubitFlatfileImport.class.php     Tue Aug  7 00:02:02 2012        
(r12048)
+++ trunk/lib/QubitFlatfileImport.class.php     Tue Aug  7 13:53:14 2012        
(r12049)
@@ -65,7 +65,7 @@
       return $text;
     };
 
-    $this->setPropertiesFromArray($this, $options, TRUE);
+    $this->setPropertiesFromArray($this, $options, true);
 
     // initialize bookkeeping of rows processed
     $this->status['rows'] = 0;
@@ -85,7 +85,7 @@
    *
    * @param object &$object  object to act upon
    * @param array $propertyArray  array of properties and their respective 
values
-   * @param array $allowedProperties  array of properties that can be set or 
TRUE if any allowed
+   * @param array $allowedProperties  array of properties that can be set or 
true if any allowed
    * @param array $ignore  array of properties that should be ignored
    *
    * @return void
@@ -100,7 +100,7 @@
         // if allowing all properties, inspect object to see if property is 
legitimate
         // otherwise use array of allowed properties
         $settingAllowed = (
-          ($allowedProperties === TRUE && property_exists(get_class($object), 
$option))
+          ($allowedProperties === true && property_exists(get_class($object), 
$option))
           || (is_array($allowedProperties) && in_array($option, 
$allowedProperties))
         );
         if ($settingAllowed)
@@ -138,7 +138,7 @@
 
   /**
    * Attempt to parse date from non-machine-readable text,
-   * returning FALSE upon failure and logging failures.
+   * returning false upon failure and logging failures.
    *
    * @param string $dateText  description of date
    *
@@ -152,13 +152,13 @@
       return $date;
     } else {
       $this->logError('Could not parse date: '. $dateText);
-      return FALSE;
+      return false;
     }
   }
 
   /**
    * Attempt to parse date from non-machine-readable text,
-   * returning FALSE upon failure.
+   * returning false upon failure.
    *
    * @param string $dateText  description of date
    *
@@ -181,7 +181,7 @@
 
     if (!$dateData['year'] || !$dateData['month'] || !$dateData['day'])
     {
-      return FALSE;
+      return false;
     } else {
       // turn back to string
       $dateString = $dateData['year'] .'-'
@@ -211,7 +211,7 @@
   /**
    * Get/set values in internal representation of current row
    */
-  function columnValue($column, $value =  FALSE)
+  function columnValue($column, $value =  false)
   {
     $columnIndex = array_search($column, $this->columnNames);
 
@@ -324,7 +324,7 @@
    *
    * @return string  combined column text
    */
-  public function amalgamateColumns($prefixesAndColumns, $destinationColumn = 
FALSE)
+  public function amalgamateColumns($prefixesAndColumns, $destinationColumn = 
false)
   {
     $output = '';
 
@@ -427,7 +427,7 @@
     $this->status['skippedRows'] = $skipRows;
     $this->columnNames = fgetcsv($fh, 60000);
 
-    if ($this->columnNames === FALSE)
+    if ($this->columnNames === false)
     {
       throw new sfException('Could not read initial row. File could be 
empty.');
     }
@@ -445,7 +445,7 @@
 
     if ($skipRows) print "Skipped ". $skipRows ." rows...\n";
 
-    $timerStarted = FALSE;
+    $timerStarted = false;
 
     // import each row
     while ($item = fgetcsv($fh, 60000))
@@ -455,7 +455,7 @@
         if (!$timerStarted)
         {
           $this->startTimer();
-          $timerStarted = TRUE;
+          $timerStarted = true;
         }
 
         $this->row($item);
@@ -502,7 +502,7 @@
     // Default culture to English
     if (0 == strlen($this->columnValue('culture')))
     {
-      $this->columnValue('culture','en');
+      $this->columnValue('culture', 'en');
     }
 
     // set row status variables that are based on column values
@@ -544,7 +544,7 @@
       // disable nested set updating, if applicable to object type
       if (property_exists(get_class($this->object), 
'disableNestedSetUpdating'))
       {
-        $this->object->disableNestedSetUpdating = TRUE;
+        $this->object->disableNestedSetUpdating = true;
       }
     } else {
       // execute ad-hoc row initialization logic (which can make objects, load

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to