Skip to content

Commit acaaf8b

Browse files
committed
[BF] fix style
1 parent 526c784 commit acaaf8b

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
All notable changes to `laravel-openinghours` will be documented in this file.
3+
All notable changes to `laravel-generators` will be documented in this file.
44

55
Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
66

src/Commands/MakeCrudEntity.php

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ class MakeCrudEntity extends Command
1212
* @var string
1313
*/
1414
protected $signature = 'make:crud {entity}';
15-
1615
/**
1716
* The console command description.
1817
*
1918
* @var string
2019
*/
2120
protected $description = 'Make full Backpack CRUD Entity';
22-
2321
protected $entity;
2422
protected $entities;
2523
protected $entitiesSnakeCase;
@@ -47,45 +45,42 @@ public function handle()
4745
$this->makeFactory();
4846
$this->makeSeeder();
4947
$this->makeCrud();
50-
5148
}
5249

5350
private function handleArguments(): void
5451
{
5552
$this->entity = $this->argument('entity');
5653
$this->entities = str_plural($this->entity);
5754
$this->entitiesSnakeCase = snake_case($this->entities);
58-
5955
}
6056

6157
private function makeMigration(): void
6258
{
6359
$this->call('make:migration:schema', [
6460
'name' => 'create_' . $this->entitiesSnakeCase . '_table',
6561
'--model' => 0,
66-
'--schema' => 'name:string'
62+
'--schema' => 'name:string',
6763
]);
6864
}
6965

7066
private function makeFactory(): void
7167
{
7268
$this->call('make:factory', [
73-
'name' => $this->entity . 'Factory'
69+
'name' => $this->entity . 'Factory',
7470
]);
7571
}
7672

7773
private function makeSeeder(): void
7874
{
7975
$this->call('make:seeder', [
80-
'name' => $this->entities . 'TableSeeder'
76+
'name' => $this->entities . 'TableSeeder',
8177
]);
8278
}
8379

8480
private function makeCrud(): void
8581
{
8682
$this->call('backpack:crud', [
87-
'name' => $this->entity
83+
'name' => $this->entity,
8884
]);
8985
}
90-
9186
}

0 commit comments

Comments
 (0)