Skip to content

Commit

Permalink
Applied fixes after review
Browse files Browse the repository at this point in the history
* Updated src/lib/API/Builder/SchemaBuilder.php

* Updated src/lib/Database/DbPlatform/PostgreSqlDbPlatform.php

* Updated src/lib/Database/DbPlatform/SqliteDbPlatform.php
  • Loading branch information
mikadamczyk authored and Andrew Longosz committed Mar 5, 2019
1 parent fc5865f commit 609f3df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/API/Builder/SchemaBuilder.php
Expand Up @@ -33,7 +33,7 @@ public function buildSchema(): Schema;
*
* @param string $schemaFilePath
*
* @return mixed
* @return \Doctrine\DBAL\Schema\Schema
*/
public function importSchemaFromFile(string $schemaFilePath): Schema;
}
2 changes: 1 addition & 1 deletion src/lib/Database/DbPlatform/PostgreSqlDbPlatform.php
Expand Up @@ -41,7 +41,7 @@ public function getCreateSchemaSQL($schemaName)
*
* @throws \InvalidArgumentException
*/
public function getDropTableSQL($table)
public function getDropTableSQL($table): string
{
$tableArg = $table;

Expand Down
4 changes: 2 additions & 2 deletions src/lib/Database/DbPlatform/SqliteDbPlatform.php
Expand Up @@ -65,7 +65,7 @@ public function supportsForeignKeyConstraints(): bool
*
* {@inheritdoc}
*/
public function getDropForeignKeySQL($foreignKey, $table)
public function getDropForeignKeySQL($foreignKey, $table): string
{
// dropping FKs is not supported by Sqlite

Expand All @@ -77,7 +77,7 @@ public function getDropForeignKeySQL($foreignKey, $table)
*
* {@inheritdoc}
*/
public function getCreateForeignKeySQL(ForeignKeyConstraint $foreignKey, $table)
public function getCreateForeignKeySQL(ForeignKeyConstraint $foreignKey, $table): string
{
return '-- ';
}
Expand Down

0 comments on commit 609f3df

Please sign in to comment.