From efe1cbdc20782d6f894fda58b127a8a8ee69ffca Mon Sep 17 00:00:00 2001 From: David Grudl Date: Sun, 12 Jan 2020 13:46:23 +0100 Subject: [PATCH] cs --- src/Dibi/Drivers/FirebirdDriver.php | 4 +--- src/Dibi/Drivers/MySqliDriver.php | 4 +--- src/Dibi/Drivers/OdbcDriver.php | 4 +--- src/Dibi/Drivers/OracleDriver.php | 4 +--- src/Dibi/Drivers/PdoDriver.php | 4 +--- src/Dibi/Drivers/PostgreDriver.php | 4 +--- src/Dibi/Drivers/SqliteDriver.php | 4 +--- src/Dibi/Drivers/SqlsrvDriver.php | 4 +--- src/Dibi/Helpers.php | 12 +++--------- src/Dibi/Reflection/Column.php | 8 ++------ src/Dibi/Reflection/Database.php | 8 ++------ src/Dibi/Reflection/Result.php | 8 ++------ src/Dibi/Reflection/Table.php | 16 ++++------------ src/Dibi/Result.php | 8 ++------ 14 files changed, 23 insertions(+), 69 deletions(-) diff --git a/src/Dibi/Drivers/FirebirdDriver.php b/src/Dibi/Drivers/FirebirdDriver.php index a09b6ca2..eb2ff817 100644 --- a/src/Dibi/Drivers/FirebirdDriver.php +++ b/src/Dibi/Drivers/FirebirdDriver.php @@ -40,9 +40,7 @@ class FirebirdDriver implements Dibi\Driver private $inTransaction = false; - /** - * @throws Dibi\NotSupportedException - */ + /** @throws Dibi\NotSupportedException */ public function __construct(array $config) { if (!extension_loaded('interbase')) { diff --git a/src/Dibi/Drivers/MySqliDriver.php b/src/Dibi/Drivers/MySqliDriver.php index e9a2dbbf..be2b7caf 100644 --- a/src/Dibi/Drivers/MySqliDriver.php +++ b/src/Dibi/Drivers/MySqliDriver.php @@ -47,9 +47,7 @@ class MySqliDriver implements Dibi\Driver private $buffered; - /** - * @throws Dibi\NotSupportedException - */ + /** @throws Dibi\NotSupportedException */ public function __construct(array $config) { if (!extension_loaded('mysqli')) { diff --git a/src/Dibi/Drivers/OdbcDriver.php b/src/Dibi/Drivers/OdbcDriver.php index d092de4f..6af92a73 100644 --- a/src/Dibi/Drivers/OdbcDriver.php +++ b/src/Dibi/Drivers/OdbcDriver.php @@ -37,9 +37,7 @@ class OdbcDriver implements Dibi\Driver private $microseconds = true; - /** - * @throws Dibi\NotSupportedException - */ + /** @throws Dibi\NotSupportedException */ public function __construct(array $config) { if (!extension_loaded('odbc')) { diff --git a/src/Dibi/Drivers/OracleDriver.php b/src/Dibi/Drivers/OracleDriver.php index 9b8e472f..ba2a3d55 100644 --- a/src/Dibi/Drivers/OracleDriver.php +++ b/src/Dibi/Drivers/OracleDriver.php @@ -42,9 +42,7 @@ class OracleDriver implements Dibi\Driver private $affectedRows; - /** - * @throws Dibi\NotSupportedException - */ + /** @throws Dibi\NotSupportedException */ public function __construct(array $config) { if (!extension_loaded('oci8')) { diff --git a/src/Dibi/Drivers/PdoDriver.php b/src/Dibi/Drivers/PdoDriver.php index adacb2f3..6dd9fdc5 100644 --- a/src/Dibi/Drivers/PdoDriver.php +++ b/src/Dibi/Drivers/PdoDriver.php @@ -42,9 +42,7 @@ class PdoDriver implements Dibi\Driver private $serverVersion = ''; - /** - * @throws Dibi\NotSupportedException - */ + /** @throws Dibi\NotSupportedException */ public function __construct(array $config) { if (!extension_loaded('pdo')) { diff --git a/src/Dibi/Drivers/PostgreDriver.php b/src/Dibi/Drivers/PostgreDriver.php index f8ce5c62..125e278e 100644 --- a/src/Dibi/Drivers/PostgreDriver.php +++ b/src/Dibi/Drivers/PostgreDriver.php @@ -35,9 +35,7 @@ class PostgreDriver implements Dibi\Driver private $affectedRows; - /** - * @throws Dibi\NotSupportedException - */ + /** @throws Dibi\NotSupportedException */ public function __construct(array $config) { if (!extension_loaded('pgsql')) { diff --git a/src/Dibi/Drivers/SqliteDriver.php b/src/Dibi/Drivers/SqliteDriver.php index 1b06d317..9488e7f0 100644 --- a/src/Dibi/Drivers/SqliteDriver.php +++ b/src/Dibi/Drivers/SqliteDriver.php @@ -37,9 +37,7 @@ class SqliteDriver implements Dibi\Driver private $fmtDateTime; - /** - * @throws Dibi\NotSupportedException - */ + /** @throws Dibi\NotSupportedException */ public function __construct(array $config) { if (!extension_loaded('sqlite3')) { diff --git a/src/Dibi/Drivers/SqlsrvDriver.php b/src/Dibi/Drivers/SqlsrvDriver.php index bb178570..01afb407 100644 --- a/src/Dibi/Drivers/SqlsrvDriver.php +++ b/src/Dibi/Drivers/SqlsrvDriver.php @@ -39,9 +39,7 @@ class SqlsrvDriver implements Dibi\Driver private $version = ''; - /** - * @throws Dibi\NotSupportedException - */ + /** @throws Dibi\NotSupportedException */ public function __construct(array $config) { if (!extension_loaded('sqlsrv')) { diff --git a/src/Dibi/Helpers.php b/src/Dibi/Helpers.php index 9c1a883d..c212d7f3 100644 --- a/src/Dibi/Helpers.php +++ b/src/Dibi/Helpers.php @@ -201,9 +201,7 @@ class Helpers } - /** - * @internal - */ + /** @internal */ public static function getTypeCache(): HashMap { if (self::$types === null) { @@ -279,18 +277,14 @@ class Helpers } - /** - * @internal - */ + /** @internal */ public static function false2Null($val) { return $val === false ? null : $val; } - /** - * @internal - */ + /** @internal */ public static function intVal($value): int { if (is_int($value)) { diff --git a/src/Dibi/Reflection/Column.php b/src/Dibi/Reflection/Column.php index 102dfeee..9016c641 100644 --- a/src/Dibi/Reflection/Column.php +++ b/src/Dibi/Reflection/Column.php @@ -106,18 +106,14 @@ class Column } - /** - * @return mixed - */ + /** @return mixed */ public function getDefault() { return $this->info['default'] ?? null; } - /** - * @return mixed - */ + /** @return mixed */ public function getVendorInfo(string $key) { return $this->info['vendor'][$key] ?? null; diff --git a/src/Dibi/Reflection/Database.php b/src/Dibi/Reflection/Database.php index 7f591501..8c6e11ed 100644 --- a/src/Dibi/Reflection/Database.php +++ b/src/Dibi/Reflection/Database.php @@ -46,9 +46,7 @@ class Database } - /** - * @return Table[] - */ + /** @return Table[] */ public function getTables(): array { $this->init(); @@ -56,9 +54,7 @@ class Database } - /** - * @return string[] - */ + /** @return string[] */ public function getTableNames(): array { $this->init(); diff --git a/src/Dibi/Reflection/Result.php b/src/Dibi/Reflection/Result.php index c8fb81f2..38b17cdd 100644 --- a/src/Dibi/Reflection/Result.php +++ b/src/Dibi/Reflection/Result.php @@ -38,9 +38,7 @@ class Result } - /** - * @return Column[] - */ + /** @return Column[] */ public function getColumns(): array { $this->initColumns(); @@ -48,9 +46,7 @@ class Result } - /** - * @return string[] - */ + /** @return string[] */ public function getColumnNames(bool $fullNames = false): array { $this->initColumns(); diff --git a/src/Dibi/Reflection/Table.php b/src/Dibi/Reflection/Table.php index f3b14ecc..f79802df 100644 --- a/src/Dibi/Reflection/Table.php +++ b/src/Dibi/Reflection/Table.php @@ -69,9 +69,7 @@ class Table } - /** - * @return Column[] - */ + /** @return Column[] */ public function getColumns(): array { $this->initColumns(); @@ -79,9 +77,7 @@ class Table } - /** - * @return string[] - */ + /** @return string[] */ public function getColumnNames(): array { $this->initColumns(); @@ -113,9 +109,7 @@ class Table } - /** - * @return ForeignKey[] - */ + /** @return ForeignKey[] */ public function getForeignKeys(): array { $this->initForeignKeys(); @@ -123,9 +117,7 @@ class Table } - /** - * @return Index[] - */ + /** @return Index[] */ public function getIndexes(): array { $this->initIndexes(); diff --git a/src/Dibi/Result.php b/src/Dibi/Result.php index 38bad9a0..73f2cd40 100644 --- a/src/Dibi/Result.php +++ b/src/Dibi/Result.php @@ -296,9 +296,7 @@ class Result implements IDataSource } - /** - * @deprecated - */ + /** @deprecated */ private function oldFetchAssoc(string $assoc) { $this->seek(0); @@ -569,9 +567,7 @@ class Result implements IDataSource } - /** - * @return Reflection\Column[] - */ + /** @return Reflection\Column[] */ final public function getColumns(): array { return $this->getInfo()->getColumns();