summaryrefslogtreecommitdiff
path: root/ext/sqlite3/tests/sqlite3_25_create_aggregate.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sqlite3/tests/sqlite3_25_create_aggregate.phpt')
-rw-r--r--ext/sqlite3/tests/sqlite3_25_create_aggregate.phpt16
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/sqlite3/tests/sqlite3_25_create_aggregate.phpt b/ext/sqlite3/tests/sqlite3_25_create_aggregate.phpt
index 84993571ec..c8a033e738 100644
--- a/ext/sqlite3/tests/sqlite3_25_create_aggregate.phpt
+++ b/ext/sqlite3/tests/sqlite3_25_create_aggregate.phpt
@@ -8,17 +8,17 @@ SQLite3::createAggregate() test
require_once(__DIR__ . '/new_db.inc');
function sum_list_step($context, $rows, $string) {
- if (empty($context))
- {
- $context = array('total' => 0, 'values' => array());
- }
- $context['total'] += intval($string);
- $context['values'][] = $context['total'];
- return $context;
+ if (empty($context))
+ {
+ $context = array('total' => 0, 'values' => array());
+ }
+ $context['total'] += intval($string);
+ $context['values'][] = $context['total'];
+ return $context;
}
function sum_list_finalize($context) {
- return implode(',', $context['values']);
+ return implode(',', $context['values']);
}
echo "Creating Table\n";