Skip to content

Commit ea2fded

Browse files
Fix style issue
1 parent 5cf7465 commit ea2fded

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/Commands/FMModelMakeCommand.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
use Illuminate\Support\Str;
77
use Symfony\Component\Console\Input\InputOption;
88

9-
class FMModelMakeCommand extends LaravelModelMakeCommand {
10-
9+
class FMModelMakeCommand extends LaravelModelMakeCommand
10+
{
1111
protected $name = 'make:fm-model';
1212

1313
/**
@@ -28,10 +28,10 @@ public function getStub()
2828
{
2929
$stub = parent::getStub();
3030

31-
if($this->option('filemaker')) {
31+
if ($this->option('filemaker')) {
3232
$stub = Str::replace('/model.', '/fm.model.', $stub);
3333

34-
throw_if(!file_exists($stub), new \RuntimeException("This model type is not yet supported by Eloquent FileMaker."));
34+
throw_if(! file_exists($stub), new \RuntimeException('This model type is not yet supported by Eloquent FileMaker.'));
3535
}
3636

3737
return $stub;

src/Providers/FileMakerConnectionServiceProvider.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use GearboxSolutions\EloquentFileMaker\Commands\FMModelMakeCommand;
66
use GearboxSolutions\EloquentFileMaker\Services\FileMakerConnection;
7-
use Illuminate\Foundation\Console\ModelMakeCommand as LaravelModelMakeCommand;
87
use Illuminate\Support\ServiceProvider;
98

109
class FileMakerConnectionServiceProvider extends ServiceProvider
@@ -51,11 +50,11 @@ public function register()
5150
public function boot()
5251
{
5352
$this->publishes([
54-
__DIR__.'/../Commands/stubs/fm.model.stub' => base_path('stubs/model.stub')
53+
__DIR__ . '/../Commands/stubs/fm.model.stub' => base_path('stubs/model.stub'),
5554
], 'eloquent-filemaker-override-model');
5655

5756
$this->publishes([
58-
__DIR__.'/../Commands/stubs/fm.model.stub' => base_path('stubs/fm.model.stub')
57+
__DIR__ . '/../Commands/stubs/fm.model.stub' => base_path('stubs/fm.model.stub'),
5958
], 'eloquent-filemaker-stubs');
6059
}
6160
}

0 commit comments

Comments
 (0)