Skip to content

Commit ba4bea3

Browse files
author
Andrey Helldar
authored
Merge pull request #5 from andrey-helldar/analysis-Rvw44O
Apply fixes from StyleCI
2 parents 7e805c8 + 3312895 commit ba4bea3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Database/Builder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ public function __construct(Connection $connection)
2121
$this->connection = $connection;
2222
}
2323

24-
abstract protected function tableNameColumn(): string;
25-
2624
/**
2725
* @return \Illuminate\Database\Schema\Builder|\Illuminate\Database\Schema\MySqlBuilder|\Illuminate\Database\Schema\PostgresBuilder
2826
*/
@@ -62,6 +60,8 @@ public function getPrimaryKey(string $table): string
6260
return Arr::first($columns);
6361
}
6462

63+
abstract protected function tableNameColumn(): string;
64+
6565
protected function columns(string $table): array
6666
{
6767
return $this->schema()->getColumnListing($table);

tests/Connectors/BaseConnection.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ abstract class BaseConnection
2424

2525
protected $grammar;
2626

27-
abstract protected function grammar(): Grammar;
28-
29-
abstract protected function connector(): ConnectorInterface;
30-
3127
public function of(string $database, string $driver): self
3228
{
3329
$this->database = $database;
@@ -54,6 +50,10 @@ public function createDatabase(string $name = null): self
5450
return $this;
5551
}
5652

53+
abstract protected function grammar(): Grammar;
54+
55+
abstract protected function connector(): ConnectorInterface;
56+
5757
protected function query(string $query): void
5858
{
5959
$this->connection()->query($query);

0 commit comments

Comments
 (0)