@@ -18,10 +18,10 @@ |
||
18 | 18 | */ |
19 | 19 | class TransformerGeneratedEvent extends ResourceGeneratedEvent |
20 | 20 | { |
21 | - public function getModel(){ |
|
21 | + public function getModel() { |
|
22 | 22 | return $this->getStubOption("model"); |
23 | 23 | } |
24 | - public function getModelNamespace(){ |
|
24 | + public function getModelNamespace() { |
|
25 | 25 | return $this->getStubOption("model_namespace"); |
26 | 26 | } |
27 | 27 | } |
@@ -22,7 +22,7 @@ |
||
22 | 22 | return $this->getStubOption("table"); |
23 | 23 | } |
24 | 24 | |
25 | - public function isMongoMigration(){ |
|
25 | + public function isMongoMigration() { |
|
26 | 26 | return $this->getStubOption("mongo"); |
27 | 27 | } |
28 | 28 | } |
@@ -18,15 +18,15 @@ |
||
18 | 18 | */ |
19 | 19 | class ListenerGeneratedEvent extends ResourceGeneratedEvent |
20 | 20 | { |
21 | - public function getEvent(){ |
|
21 | + public function getEvent() { |
|
22 | 22 | return $this->getStubOption("event"); |
23 | 23 | } |
24 | 24 | |
25 | - public function getEventNamespace(){ |
|
25 | + public function getEventNamespace() { |
|
26 | 26 | return $this->getStubOption("event_namespace"); |
27 | 27 | } |
28 | 28 | |
29 | - public function isQueued(){ |
|
29 | + public function isQueued() { |
|
30 | 30 | return $this->getStubOption("queued"); |
31 | 31 | } |
32 | 32 | } |
@@ -18,11 +18,11 @@ |
||
18 | 18 | */ |
19 | 19 | class ComposerGeneratedEvent extends ResourceGeneratedEvent |
20 | 20 | { |
21 | - public function getAuthorName(){ |
|
21 | + public function getAuthorName() { |
|
22 | 22 | return $this->getStubOption("author_name"); |
23 | 23 | } |
24 | 24 | |
25 | - public function getAuthorMail(){ |
|
25 | + public function getAuthorMail() { |
|
26 | 26 | return $this->getStubOption("author_mail"); |
27 | 27 | } |
28 | 28 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | class TestGeneratedEvent extends ResourceGeneratedEvent |
20 | 20 | { |
21 | - public function getType(){ |
|
21 | + public function getType() { |
|
22 | 22 | return $this->getStubOption("type"); |
23 | 23 | } |
24 | 24 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | class RouteGeneratedEvent extends ResourceGeneratedEvent |
20 | 20 | { |
21 | - public function getVersion(){ |
|
21 | + public function getVersion() { |
|
22 | 22 | return $this->getStubOption("version"); |
23 | 23 | } |
24 | 24 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | return [ |
51 | 51 | 'NAMESPACE' => $this->getClassNamespace(), |
52 | 52 | 'CLASS' => $this->getClassName(), |
53 | - 'EVENT_NAMESPACE' => $this->getModule()->getNamespace() . '\\' . 'Events' . '\\' . $this->getEventName(), |
|
53 | + 'EVENT_NAMESPACE' => $this->getModule()->getNamespace().'\\'.'Events'.'\\'.$this->getEventName(), |
|
54 | 54 | 'EVENT' => $this->getEventName(), |
55 | 55 | 'QUEUED' => $this->needsQueing() |
56 | 56 | ]; |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | protected function afterGeneration(): void |
60 | 60 | { |
61 | - $this->info("don't forget to add the listener to " . $this->getEventName()); |
|
61 | + $this->info("don't forget to add the listener to ".$this->getEventName()); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
@@ -91,8 +91,8 @@ discard block |
||
91 | 91 | protected function setOptions(): array |
92 | 92 | { |
93 | 93 | return [ |
94 | - ['event', null, InputOption::VALUE_OPTIONAL, 'What is the name of the event that should be listened on?', null], |
|
95 | - ['queued', null, InputOption::VALUE_OPTIONAL, 'Should the listener be queued?', false], |
|
94 | + [ 'event', null, InputOption::VALUE_OPTIONAL, 'What is the name of the event that should be listened on?', null ], |
|
95 | + [ 'queued', null, InputOption::VALUE_OPTIONAL, 'Should the listener be queued?', false ], |
|
96 | 96 | ]; |
97 | 97 | } |
98 | 98 |
@@ -13,8 +13,8 @@ |
||
13 | 13 | |
14 | 14 | use \Modules\Schedule\Permissions\SchedulePermissions; |
15 | 15 | |
16 | -Route::get('/{id}', 'ScheduleController@show')->middleware(['permission:'.SchedulePermissions::SHOW_SCHEDULE]); |
|
17 | -Route::patch('/{id}', 'ScheduleController@update')->middleware(['permission:'.SchedulePermissions::UPDATE_SCHEDULE]); |
|
18 | -Route::delete('/{id}', 'ScheduleController@destroy')->middleware(['permission:'.SchedulePermissions::DELETE_SCHEDULE]); |
|
19 | -Route::post('/', 'ScheduleController@store')->middleware(['permission:'.SchedulePermissions::CREATE_SCHEDULE]); |
|
20 | -Route::get('/', 'ScheduleController@index')->middleware(['permission:'.SchedulePermissions::INDEX_SCHEDULE]); |
|
16 | +Route::get('/{id}', 'ScheduleController@show')->middleware([ 'permission:'.SchedulePermissions::SHOW_SCHEDULE ]); |
|
17 | +Route::patch('/{id}', 'ScheduleController@update')->middleware([ 'permission:'.SchedulePermissions::UPDATE_SCHEDULE ]); |
|
18 | +Route::delete('/{id}', 'ScheduleController@destroy')->middleware([ 'permission:'.SchedulePermissions::DELETE_SCHEDULE ]); |
|
19 | +Route::post('/', 'ScheduleController@store')->middleware([ 'permission:'.SchedulePermissions::CREATE_SCHEDULE ]); |
|
20 | +Route::get('/', 'ScheduleController@index')->middleware([ 'permission:'.SchedulePermissions::INDEX_SCHEDULE ]); |
@@ -15,5 +15,5 @@ |
||
15 | 15 | use Modules\Authorization\Permissions\AuthorizationPermissions; |
16 | 16 | |
17 | 17 | Route::get('/me', 'UserController@show'); |
18 | -Route::patch('/{id}', 'UserController@update')->middleware(['permission:' . AuthorizationPermissions::ASSIGN_ROLES]); |
|
19 | -Route::get('/', 'UserController@index')->middleware(['permission:' . UserPermissions::INDEX_USERS]); |
|
18 | +Route::patch('/{id}', 'UserController@update')->middleware([ 'permission:'.AuthorizationPermissions::ASSIGN_ROLES ]); |
|
19 | +Route::get('/', 'UserController@index')->middleware([ 'permission:'.UserPermissions::INDEX_USERS ]); |