mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 14:16:39 +02:00
coding style: TRUE/FALSE/NULL -> true/false/null
This commit is contained in:
@@ -89,7 +89,7 @@ try {
|
||||
dibi::connect([
|
||||
'driver' => 'postgre',
|
||||
'string' => 'host=localhost port=5432 dbname=mary',
|
||||
'persistent' => TRUE,
|
||||
'persistent' => true,
|
||||
]);
|
||||
echo 'OK';
|
||||
} catch (Dibi\Exception $e) {
|
||||
|
Binary file not shown.
@@ -14,13 +14,13 @@ dibi::connect([
|
||||
|
||||
|
||||
// some variables
|
||||
$cond1 = TRUE;
|
||||
$cond2 = FALSE;
|
||||
$cond1 = true;
|
||||
$cond2 = false;
|
||||
$foo = -1;
|
||||
$bar = 2;
|
||||
|
||||
// conditional variable
|
||||
$name = $cond1 ? 'K%' : NULL;
|
||||
$name = $cond1 ? 'K%' : null;
|
||||
|
||||
// if & end
|
||||
dibi::test('
|
||||
|
@@ -33,7 +33,7 @@ dibi::test('
|
||||
REPLACE INTO products', [
|
||||
'title' => 'Super product',
|
||||
'price' => 318,
|
||||
'active' => TRUE,
|
||||
'active' => true,
|
||||
]);
|
||||
// -> REPLACE INTO products ([title], [price], [active]) VALUES ('Super product', 318, 1)
|
||||
|
||||
@@ -42,7 +42,7 @@ dibi::test('
|
||||
$array = [
|
||||
'title' => 'Super Product',
|
||||
'price' => 12,
|
||||
'brand' => NULL,
|
||||
'brand' => null,
|
||||
'created' => new DateTime,
|
||||
];
|
||||
dibi::test('INSERT INTO products', $array, $array, $array);
|
||||
|
@@ -14,7 +14,7 @@ $connection = dibi::connect([
|
||||
'driver' => 'sqlite3',
|
||||
'database' => 'data/sample.s3db',
|
||||
'profiler' => [
|
||||
'run' => TRUE,
|
||||
'run' => true,
|
||||
],
|
||||
]);
|
||||
|
||||
|
@@ -14,7 +14,7 @@ $connection = dibi::connect([
|
||||
'driver' => 'sqlite3',
|
||||
'database' => 'data/sample.s3db',
|
||||
'profiler' => [
|
||||
'run' => TRUE,
|
||||
'run' => true,
|
||||
],
|
||||
]);
|
||||
|
||||
|
@@ -19,7 +19,7 @@ $id = 10;
|
||||
$record = [
|
||||
'title' => 'Super product',
|
||||
'price' => 318,
|
||||
'active' => TRUE,
|
||||
'active' => true,
|
||||
];
|
||||
|
||||
// SELECT ...
|
||||
|
@@ -14,7 +14,7 @@ dibi::connect([
|
||||
'database' => 'data/sample.s3db',
|
||||
// enable query logging to this file
|
||||
'profiler' => [
|
||||
'run' => TRUE,
|
||||
'run' => true,
|
||||
'file' => 'data/log.sql',
|
||||
],
|
||||
]);
|
||||
|
@@ -13,7 +13,7 @@ dibi::connect([
|
||||
'driver' => 'sqlite3',
|
||||
'database' => 'data/sample.s3db',
|
||||
'profiler' => [
|
||||
'run' => TRUE,
|
||||
'run' => true,
|
||||
],
|
||||
]);
|
||||
|
||||
|
Reference in New Issue
Block a user