Skip to content

Commit e9a9110

Browse files
authoredMar 23, 2024·
Format code by the latest cs-fixer. (#6617)
1 parent a5f2516 commit e9a9110

12 files changed

+20
-6
lines changed
 

‎src/ConfigProvider.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Database\SQLite;
1314

1415
use Hyperf\Database\SQLite\Connectors\SQLiteConnector;

‎src/Connectors/SQLiteConnector.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Database\SQLite\Connectors;
1314

1415
use Hyperf\Database\Connectors\Connector;

‎src/Listener/RegisterConnectionListener.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Database\SQLite\Listener;
1314

1415
use Hyperf\Context\ApplicationContext;

‎src/Query/Grammars/SQLiteGrammar.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Database\SQLite\Query\Grammars;
1314

1415
use Hyperf\Collection\Arr;

‎src/Query/Processors/SQLiteProcessor.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Database\SQLite\Query\Processors;
1314

1415
use Hyperf\Database\Query\Processors\Processor;

‎src/SQLiteConnection.php

+8-5
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Database\SQLite;
1314

1415
use Closure;
16+
use Doctrine\DBAL\Driver\PDO\SQLite\Driver;
1517
use Doctrine\DBAL\Driver\PDO\SQLite\Driver as DoctrineDriver;
1618
use Hyperf\Database\Connection;
1719
use Hyperf\Database\Query\Grammars\Grammar as HyperfQueryGrammar;
1820
use Hyperf\Database\Query\Processors\Processor;
1921
use Hyperf\Database\Schema\Builder as SchemaBuilder;
2022
use Hyperf\Database\Schema\Grammars\Grammar as HyperfSchemaGrammar;
23+
use Hyperf\Database\SQLite\Query\Grammars\SQLiteGrammar;
2124
use Hyperf\Database\SQLite\Query\Grammars\SQLiteGrammar as QueryGrammar;
2225
use Hyperf\Database\SQLite\Query\Processors\SQLiteProcessor;
2326
use Hyperf\Database\SQLite\Schema\Grammars\SQLiteGrammar as SchemaGrammar;
@@ -51,7 +54,7 @@ public function __construct($pdo, $database = '', $tablePrefix = '', array $conf
5154
/**
5255
* Get a schema builder instance for the connection.
5356
*
54-
* @return \Hyperf\Database\SQLite\Schema\SQLiteBuilder
57+
* @return SQLiteBuilder
5558
*/
5659
public function getSchemaBuilder(): SchemaBuilder
5760
{
@@ -65,7 +68,7 @@ public function getSchemaBuilder(): SchemaBuilder
6568
/**
6669
* Get the default query grammar instance.
6770
*
68-
* @return \Hyperf\Database\SQLite\Query\Grammars\SQLiteGrammar
71+
* @return SQLiteGrammar
6972
*/
7073
protected function getDefaultQueryGrammar(): HyperfQueryGrammar
7174
{
@@ -76,7 +79,7 @@ protected function getDefaultQueryGrammar(): HyperfQueryGrammar
7679
/**
7780
* Get the default schema grammar instance.
7881
*
79-
* @return \Hyperf\Database\SQLite\Schema\Grammars\SQLiteGrammar
82+
* @return SchemaGrammar
8083
*/
8184
protected function getDefaultSchemaGrammar(): HyperfSchemaGrammar
8285
{
@@ -87,7 +90,7 @@ protected function getDefaultSchemaGrammar(): HyperfSchemaGrammar
8790
/**
8891
* Get the default post processor instance.
8992
*
90-
* @return \Hyperf\Database\SQLite\Query\Processors\SQLiteProcessor
93+
* @return SQLiteProcessor
9194
*/
9295
protected function getDefaultPostProcessor(): Processor
9396
{
@@ -97,7 +100,7 @@ protected function getDefaultPostProcessor(): Processor
97100
/**
98101
* Get the Doctrine DBAL driver.
99102
*
100-
* @return \Doctrine\DBAL\Driver\PDO\SQLite\Driver
103+
* @return Driver
101104
*/
102105
protected function getDoctrineDriver()
103106
{

‎src/Schema/Grammars/SQLiteGrammar.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Database\SQLite\Schema\Grammars;
1314

1415
use Hyperf\Collection\Arr;
@@ -581,7 +582,7 @@ protected function addForeignKeys(Blueprint $blueprint): ?string
581582
/**
582583
* Get the SQL for the foreign key.
583584
*
584-
* @param \Hyperf\Support\Fluent $foreign
585+
* @param Fluent $foreign
585586
*/
586587
protected function getForeignKey($foreign): string
587588
{

‎src/Schema/SQLiteBuilder.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Database\SQLite\Schema;
1314

1415
use Hyperf\Context\ApplicationContext;

‎tests/DatabaseSQLiteBuilderTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace HyperfTest\Database\SQLite;
1314

1415
use Hyperf\Context\ApplicationContext;

‎tests/DatabaseSQLiteProcessorTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace HyperfTest\Database\SQLite;
1314

1415
use Hyperf\Database\Schema\Column;

‎tests/DatabaseSQLiteQueryGrammarTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace HyperfTest\Database\SQLite;
1314

1415
use Hyperf\Database\Connection;

‎tests/DatabaseSQLiteSchemaGrammarTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace HyperfTest\Database\SQLite;
1314

1415
use Hyperf\Collection\Collection;

0 commit comments

Comments
 (0)
Please sign in to comment.