mirror of
https://github.com/dg/dibi.git
synced 2025-08-22 05:33:10 +02:00
coding style: fixes in code
This commit is contained in:
@@ -65,7 +65,7 @@ Assert::equal([
|
||||
// more complex association array
|
||||
function query($conn)
|
||||
{
|
||||
return $conn->query(in_array($conn->getConfig('system'), ['odbc', 'sqlsrv']) ? '
|
||||
return $conn->query(in_array($conn->getConfig('system'), ['odbc', 'sqlsrv'], true) ? '
|
||||
SELECT products.title, customers.name, orders.amount
|
||||
FROM ([products]
|
||||
INNER JOIN [orders] ON [products.product_id] = [orders.product_id])
|
||||
@@ -172,11 +172,11 @@ Assert::equal([
|
||||
Assert::equal([
|
||||
new Row(['title' => 'Chair', 'name' => 'Arnold Rimmer', 'amount' => num(7.0)]),
|
||||
new Row([
|
||||
'title' => 'Computer', 'name' => 'Arnold Rimmer', 'amount' => num(2.0)]),
|
||||
'title' => 'Computer', 'name' => 'Arnold Rimmer', 'amount' => num(2.0), ]),
|
||||
new Row([
|
||||
'title' => 'Table', 'name' => 'Dave Lister', 'amount' => num(3.0)]),
|
||||
'title' => 'Table', 'name' => 'Dave Lister', 'amount' => num(3.0), ]),
|
||||
new Row([
|
||||
'title' => 'Computer', 'name' => 'Kristine Kochanski', 'amount' => num(5.0)]),
|
||||
'title' => 'Computer', 'name' => 'Kristine Kochanski', 'amount' => num(5.0), ]),
|
||||
], query($conn)->fetchAssoc('@,='));
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user