Skip to content

Commit 06d15be

Browse files
committed
Refactoring
1 parent 171be0d commit 06d15be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Grammars/SqliteGrammar.php renamed to src/Grammars/SQLiteGrammar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Illuminate\Database\Query\Grammars\SQLiteGrammar as Base;
77
use RuntimeException;
88

9-
class SqliteGrammar extends Base implements JsonGrammar
9+
class SQLiteGrammar extends Base implements JsonGrammar
1010
{
1111
/**
1212
* Compile a "JSON array" statement into SQL.

src/Relations/Traits/IsJsonRelation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
use Staudenmeir\EloquentJsonRelations\Grammars\JsonGrammar;
1212
use Staudenmeir\EloquentJsonRelations\Grammars\MySqlGrammar;
1313
use Staudenmeir\EloquentJsonRelations\Grammars\PostgresGrammar;
14-
use Staudenmeir\EloquentJsonRelations\Grammars\SqliteGrammar;
14+
use Staudenmeir\EloquentJsonRelations\Grammars\SQLiteGrammar;
1515
use Staudenmeir\EloquentJsonRelations\Grammars\SqlServerGrammar;
1616

1717
trait IsJsonRelation
@@ -166,7 +166,7 @@ protected function getJsonGrammar(Builder $query): JsonGrammar
166166
match ($driver) {
167167
'mysql' => new MySqlGrammar(),
168168
'pgsql' => new PostgresGrammar(),
169-
'sqlite' => new SqliteGrammar(),
169+
'sqlite' => new SQLiteGrammar(),
170170
'sqlsrv' => new SqlServerGrammar(),
171171
default => throw new RuntimeException('This database is not supported.') // @codeCoverageIgnore
172172
}

0 commit comments

Comments
 (0)