Skip to content

Commit

Permalink
style: Apply fixes from StyleCI (#1077)
Browse files Browse the repository at this point in the history
Co-authored-by: StyleCI Bot <[email protected]>
  • Loading branch information
mitulgolakiya and StyleCIBot authored Apr 4, 2023
1 parent 6a5c12d commit 622e546
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/Commands/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,6 @@ protected function parseFieldsFromJsonFile()
}

$this->config->fields[] = GeneratorField::parseFieldFromFile($field);

}
}

Expand Down
1 change: 0 additions & 1 deletion src/Utils/TableFieldsGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions tests/Commands/APIGeneratorCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
1 change: 1 addition & 0 deletions tests/Commands/APIScaffoldGeneratorCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
1 change: 1 addition & 0 deletions tests/Commands/PublishTablesCommandTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

use InfyOm\Generator\Commands\Publish\PublishTablesCommand;

use function Pest\Laravel\artisan;

it('thrown exceptions with invalid type passed', function () {
Expand Down
1 change: 1 addition & 0 deletions tests/Commands/RollbackGeneratorCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use InfyOm\Generator\Generators\Scaffold\ViewGenerator;
use InfyOm\Generator\Generators\SeederGenerator;
use Mockery as m;

use function Pest\Laravel\artisan;

afterEach(function () {
Expand Down
1 change: 1 addition & 0 deletions tests/Commands/ScaffoldGeneratorCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 622e546

Please sign in to comment.