Skip to content

Commit

Permalink
Format code by the latest cs-fixer. (#6617)
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo authored Mar 23, 2024
1 parent a5f2516 commit e9a9110
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/ConfigProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Database\SQLite;

use Hyperf\Database\SQLite\Connectors\SQLiteConnector;
Expand Down
1 change: 1 addition & 0 deletions src/Connectors/SQLiteConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Database\SQLite\Connectors;

use Hyperf\Database\Connectors\Connector;
Expand Down
1 change: 1 addition & 0 deletions src/Listener/RegisterConnectionListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Database\SQLite\Listener;

use Hyperf\Context\ApplicationContext;
Expand Down
1 change: 1 addition & 0 deletions src/Query/Grammars/SQLiteGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Database\SQLite\Query\Grammars;

use Hyperf\Collection\Arr;
Expand Down
1 change: 1 addition & 0 deletions src/Query/Processors/SQLiteProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Database\SQLite\Query\Processors;

use Hyperf\Database\Query\Processors\Processor;
Expand Down
13 changes: 8 additions & 5 deletions src/SQLiteConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Database\SQLite;

use Closure;
use Doctrine\DBAL\Driver\PDO\SQLite\Driver;
use Doctrine\DBAL\Driver\PDO\SQLite\Driver as DoctrineDriver;
use Hyperf\Database\Connection;
use Hyperf\Database\Query\Grammars\Grammar as HyperfQueryGrammar;
use Hyperf\Database\Query\Processors\Processor;
use Hyperf\Database\Schema\Builder as SchemaBuilder;
use Hyperf\Database\Schema\Grammars\Grammar as HyperfSchemaGrammar;
use Hyperf\Database\SQLite\Query\Grammars\SQLiteGrammar;
use Hyperf\Database\SQLite\Query\Grammars\SQLiteGrammar as QueryGrammar;
use Hyperf\Database\SQLite\Query\Processors\SQLiteProcessor;
use Hyperf\Database\SQLite\Schema\Grammars\SQLiteGrammar as SchemaGrammar;
Expand Down Expand Up @@ -51,7 +54,7 @@ public function __construct($pdo, $database = '', $tablePrefix = '', array $conf
/**
* Get a schema builder instance for the connection.
*
* @return \Hyperf\Database\SQLite\Schema\SQLiteBuilder
* @return SQLiteBuilder
*/
public function getSchemaBuilder(): SchemaBuilder
{
Expand All @@ -65,7 +68,7 @@ public function getSchemaBuilder(): SchemaBuilder
/**
* Get the default query grammar instance.
*
* @return \Hyperf\Database\SQLite\Query\Grammars\SQLiteGrammar
* @return SQLiteGrammar
*/
protected function getDefaultQueryGrammar(): HyperfQueryGrammar
{
Expand All @@ -76,7 +79,7 @@ protected function getDefaultQueryGrammar(): HyperfQueryGrammar
/**
* Get the default schema grammar instance.
*
* @return \Hyperf\Database\SQLite\Schema\Grammars\SQLiteGrammar
* @return SchemaGrammar
*/
protected function getDefaultSchemaGrammar(): HyperfSchemaGrammar
{
Expand All @@ -87,7 +90,7 @@ protected function getDefaultSchemaGrammar(): HyperfSchemaGrammar
/**
* Get the default post processor instance.
*
* @return \Hyperf\Database\SQLite\Query\Processors\SQLiteProcessor
* @return SQLiteProcessor
*/
protected function getDefaultPostProcessor(): Processor
{
Expand All @@ -97,7 +100,7 @@ protected function getDefaultPostProcessor(): Processor
/**
* Get the Doctrine DBAL driver.
*
* @return \Doctrine\DBAL\Driver\PDO\SQLite\Driver
* @return Driver
*/
protected function getDoctrineDriver()
{
Expand Down
3 changes: 2 additions & 1 deletion src/Schema/Grammars/SQLiteGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Database\SQLite\Schema\Grammars;

use Hyperf\Collection\Arr;
Expand Down Expand Up @@ -581,7 +582,7 @@ protected function addForeignKeys(Blueprint $blueprint): ?string
/**
* Get the SQL for the foreign key.
*
* @param \Hyperf\Support\Fluent $foreign
* @param Fluent $foreign
*/
protected function getForeignKey($foreign): string
{
Expand Down
1 change: 1 addition & 0 deletions src/Schema/SQLiteBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Database\SQLite\Schema;

use Hyperf\Context\ApplicationContext;
Expand Down
1 change: 1 addition & 0 deletions tests/DatabaseSQLiteBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Database\SQLite;

use Hyperf\Context\ApplicationContext;
Expand Down
1 change: 1 addition & 0 deletions tests/DatabaseSQLiteProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Database\SQLite;

use Hyperf\Database\Schema\Column;
Expand Down
1 change: 1 addition & 0 deletions tests/DatabaseSQLiteQueryGrammarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Database\SQLite;

use Hyperf\Database\Connection;
Expand Down
1 change: 1 addition & 0 deletions tests/DatabaseSQLiteSchemaGrammarTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace HyperfTest\Database\SQLite;

use Hyperf\Collection\Collection;
Expand Down

0 comments on commit e9a9110

Please sign in to comment.