Passed
Push — master ( 624a9a...4c85b9 )
by Arthur
36:47
created
src/Foundation/Generator/Events/TransformerGeneratedEvent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Foundation/Generator/Events/MigrationGeneratedEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Foundation/Generator/Events/ListenerGeneratedEvent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,15 +18,15 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Foundation/Generator/Events/ComposerGeneratedEvent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Foundation/Generator/Events/TestGeneratedEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Foundation/Generator/Events/RouteGeneratedEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Foundation/Generator/Commands/ListenerMakeCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Modules/Schedule/Routes/schedules.v1.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
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 ]);
Please login to merge, or discard this patch.
src/Modules/User/Routes/users.v1.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,5 +15,5 @@
 block discarded – undo
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 ]);
Please login to merge, or discard this patch.