Skip to content

Commit d5a1c35

Browse files
committed
Lint files.
1 parent 6c0b221 commit d5a1c35

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Console/MakeModuleCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
namespace Modular\Modular\Console;
44

5-
use Illuminate\Support\Str;
65
use Illuminate\Console\Command;
7-
use Illuminate\Support\Facades\File;
86
use Illuminate\Filesystem\Filesystem;
9-
use Illuminate\Support\Facades\Artisan;
7+
use Illuminate\Support\Facades\File;
8+
use Illuminate\Support\Str;
109

1110
class MakeModuleCommand extends Command
1211
{
@@ -20,7 +19,7 @@ public function handle(): ?int
2019
{
2120
$this->setModuleName();
2221

23-
$this->comment('Creating Module ' . $this->moduleName);
22+
$this->comment('Creating Module '.$this->moduleName);
2423

2524
if ($this->createModuleDirectoryStructure()) {
2625
$this->createServiceProvider();
@@ -53,7 +52,7 @@ private function setModulename(): void
5352

5453
private function createServiceProvider(): void
5554
{
56-
$stub = file_get_contents(__DIR__ . '/../../stubs/module-stub/modules/ModuleServiceProvider.stub');
55+
$stub = file_get_contents(__DIR__.'/../../stubs/module-stub/modules/ModuleServiceProvider.stub');
5756

5857
$stub = str_replace('{{ moduleName }}', $this->moduleName, $stub);
5958
$stub = str_replace('{{ resourceName }}', Str::camel($this->moduleName), $stub);
@@ -71,6 +70,7 @@ private function createModuleDirectoryStructure(): bool
7170
if (File::exists($modulePath)) {
7271
// Output an error message to the console
7372
$this->info("Module {$this->moduleName} already exists. SKIPPING");
73+
7474
return false;
7575
}
7676

stubs/modules/Support/Http/Requests/JsonRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace Modules\Support\Http\Requests;
44

5-
use Illuminate\Foundation\Http\FormRequest;
65
use Illuminate\Contracts\Validation\Validator;
6+
use Illuminate\Foundation\Http\FormRequest;
77
use Illuminate\Http\Exceptions\HttpResponseException;
88

99
abstract class JsonRequest extends FormRequest
@@ -16,7 +16,7 @@ public function authorize(): bool
1616
protected function failedValidation(Validator $validator): void
1717
{
1818
throw new HttpResponseException(response()->json([
19-
'errors' => $validator->errors()
19+
'errors' => $validator->errors(),
2020
], 422));
2121
}
2222
}

0 commit comments

Comments
 (0)