Author: mcantelon
Date: Mon Jan 2 10:34:02 2012
New Revision: 10507
Log:
Swapped use of sizeof for count as per coding standards.
Modified:
trunk/lib/task/csvImportTask.class.php
Modified: trunk/lib/task/csvImportTask.class.php
==============================================================================
--- trunk/lib/task/csvImportTask.class.php Mon Jan 2 00:03:18 2012
(r10506)
+++ trunk/lib/task/csvImportTask.class.php Mon Jan 2 10:34:02 2012
(r10507)
@@ -156,7 +156,7 @@
// add accessions
if (
isset($self->rowStatusVars['accessionNumbers'])
- && sizeof($self->rowStatusVars['accessionNumbers'])
+ && count($self->rowStatusVars['accessionNumbers'])
)
{
foreach($self->rowStatusVars['accessionNumbers'] as $accessionNumber)
@@ -170,7 +170,7 @@
}
if (isset($self->rowStatusVars['creators'])
- && sizeof($self->rowStatusVars['creators']))
+ && count($self->rowStatusVars['creators']))
{
foreach($self->rowStatusVars['creators'] as $creator)
{
@@ -334,9 +334,9 @@
$ignored = $this->determineUnhandledColumns();
- if (sizeof($ignored))
+ if (count($ignored))
{
- print sizeof($ignored) . " columns aren't handled or ignored:\n";
+ print count($ignored) . " columns aren't handled or ignored:\n";
foreach($ignored as $ignore)
{
$output .= ' '. $ignore ."\n";
@@ -361,7 +361,7 @@
protected function forEachRowColumn($row, $logic)
{
- for ($index = 0; $index < sizeof($row); $index++)
+ for ($index = 0; $index < count($row); $index++)
{
// determine what type of data should be in this column
@@ -488,7 +488,7 @@
{
$connection = Propel::getConnection();
$statement = $connection->prepare($query);
- for($index = 0; $index < sizeof($params); $index++)
+ for($index = 0; $index < count($params); $index++)
{
$statement->bindValue($index + 1, $params[$index]);
}
--
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.