1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-25 15:01:29 +02:00

coding style: fixed spaces & use statements order

This commit is contained in:
David Grudl
2017-07-11 12:27:26 +02:00
parent 1278907f39
commit 3b37295e78
61 changed files with 36 additions and 85 deletions

View File

@@ -6,8 +6,8 @@
declare(strict_types=1);
use Tester\Assert;
use Dibi\Connection;
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -6,8 +6,8 @@
declare(strict_types=1);
use Tester\Assert;
use Dibi\Row;
use Tester\Assert;
require __DIR__ . '/bootstrap.php';
@@ -63,8 +63,8 @@ Assert::equal([
// more complex association array
function query($conn) {
function query($conn)
{
return $conn->query(in_array($conn->getConfig('system'), ['odbc', 'sqlsrv']) ? '
SELECT products.title, customers.name, orders.amount
FROM ([products]

View File

@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
use Tester\Assert;

View File

@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
use Tester\Assert;
use Dibi\Row;
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
use Tester\Assert;
use Dibi\Fluent;
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
use Tester\Assert;

View File

@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
use Tester\Assert;
@@ -10,21 +9,27 @@ require __DIR__ . '/bootstrap.php';
class MockDriver extends Dibi\Drivers\SqlsrvDriver
{
function __construct()
{}
{
}
function connect(array & $config): void
{}
{
}
function query(string $sql): ?Dibi\ResultDriver
{
return $this;
}
function getResultColumns(): array
{
return [];
}
function fetch(bool $type): ?array
{
return NULL;

View File

@@ -6,8 +6,8 @@
declare(strict_types=1);
use Tester\Assert;
use Dibi\Row;
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
use Tester\Assert;

View File

@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
use Tester\Assert;

View File

@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
use Dibi\Helpers;

View File

@@ -1,9 +1,8 @@
<?php
declare(strict_types=1);
use Tester\Assert;
use Dibi\Type;
use Tester\Assert;
require __DIR__ . '/bootstrap.php';
@@ -11,7 +10,9 @@ require __DIR__ . '/bootstrap.php';
class MockResult extends Dibi\Result
{
function __construct()
{}
{
}
function test($row)
{

View File

@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
use Tester\Assert;

View File

@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
use Tester\Assert;
@@ -17,23 +16,33 @@ class TestClass
public static $publicStatic;
public function publicMethod()
{}
{
}
public static function publicMethodStatic()
{}
{
}
protected function protectedMethod()
{}
{
}
protected static function protectedMethodS()
{}
{
}
public function getBar()
{
return 123;
}
public function isFoo()
{
return 456;

View File

@@ -6,8 +6,8 @@
declare(strict_types=1);
use Tester\Assert;
use Dibi\DateTime;
use Tester\Assert;
require __DIR__ . '/bootstrap.php';

View File

@@ -1,5 +1,4 @@
<?php
declare(strict_types=1);
// The Nette Tester command-line runner can be