diff --git a/src/Commands/BaseCommand.php b/src/Commands/BaseCommand.php index e3cf512bc..a1934a2a7 100755 --- a/src/Commands/BaseCommand.php +++ b/src/Commands/BaseCommand.php @@ -436,7 +436,6 @@ protected function parseFieldsFromJsonFile() } $this->config->fields[] = GeneratorField::parseFieldFromFile($field); - } } diff --git a/src/Utils/TableFieldsGenerator.php b/src/Utils/TableFieldsGenerator.php index ad5c013d5..a2c586c48 100755 --- a/src/Utils/TableFieldsGenerator.php +++ b/src/Utils/TableFieldsGenerator.php @@ -375,7 +375,6 @@ private function checkForRelations($tables) foreach ($foreignKeys as $foreignKey) { // check if foreign key is on the model table for which we are using generator command if ($foreignKey->foreignTable == $modelTableName) { - // detect if one to one relationship is there $isOneToOne = $this->isOneToOne($primary, $foreignKey, $modelTable->primaryKey); if ($isOneToOne) { diff --git a/tests/Commands/APIGeneratorCommandTest.php b/tests/Commands/APIGeneratorCommandTest.php index 8bfd55450..31af5ee49 100644 --- a/tests/Commands/APIGeneratorCommandTest.php +++ b/tests/Commands/APIGeneratorCommandTest.php @@ -18,6 +18,7 @@ use InfyOm\Generator\Generators\Scaffold\ViewGenerator; use InfyOm\Generator\Generators\SeederGenerator; use Mockery as m; + use function Pest\Laravel\artisan; afterEach(function () { diff --git a/tests/Commands/APIScaffoldGeneratorCommandTest.php b/tests/Commands/APIScaffoldGeneratorCommandTest.php index 734c46403..6dad2e7cd 100644 --- a/tests/Commands/APIScaffoldGeneratorCommandTest.php +++ b/tests/Commands/APIScaffoldGeneratorCommandTest.php @@ -18,6 +18,7 @@ use InfyOm\Generator\Generators\Scaffold\ViewGenerator; use InfyOm\Generator\Generators\SeederGenerator; use Mockery as m; + use function Pest\Laravel\artisan; afterEach(function () { diff --git a/tests/Commands/PublishTablesCommandTest.php b/tests/Commands/PublishTablesCommandTest.php index d3e9879c2..026ef4fff 100755 --- a/tests/Commands/PublishTablesCommandTest.php +++ b/tests/Commands/PublishTablesCommandTest.php @@ -1,6 +1,7 @@