Passed
Push — master ( 40ce26...965fb6 )
by Arthur
22:04
created
src/Foundation/Generator/Commands/TestMakeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
     protected function setOptions(): array
86 86
     {
87 87
         return [
88
-            ['type', $this->types, InputOption::VALUE_OPTIONAL, 'Indicates the type of the test.', $this->types[0]]
88
+            [ 'type', $this->types, InputOption::VALUE_OPTIONAL, 'Indicates the type of the test.', $this->types[ 0 ] ]
89 89
         ];
90 90
     }
91 91
 
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,14 +50,14 @@  discard block
 block discarded – undo
50 50
         return [
51 51
             'NAMESPACE' => $this->getClassNamespace(),
52 52
             'CLASS' => $this->getClassName(),
53
-            'EVENTNAME' => $this->getModule()->getNamespace() . '\\' . 'Events' . '\\' . $this->getEventName(),
53
+            'EVENTNAME' => $this->getModule()->getNamespace().'\\'.'Events'.'\\'.$this->getEventName(),
54 54
             'SHORTEVENTNAME' => $this->getEventName()
55 55
         ];
56 56
     }
57 57
 
58 58
     protected function afterGeneration(): void
59 59
     {
60
-        $this->info("don't forget to add the listener to " . $this->getEventName());
60
+        $this->info("don't forget to add the listener to ".$this->getEventName());
61 61
     }
62 62
 
63 63
     /**
@@ -90,8 +90,8 @@  discard block
 block discarded – undo
90 90
     protected function setOptions(): array
91 91
     {
92 92
         return [
93
-            ['event', null, InputOption::VALUE_OPTIONAL, 'What is the name of the event that should be listened on?', null],
94
-            ['queued', null, InputOption::VALUE_OPTIONAL, 'Should the listener be queued?', false],
93
+            [ 'event', null, InputOption::VALUE_OPTIONAL, 'What is the name of the event that should be listened on?', null ],
94
+            [ 'queued', null, InputOption::VALUE_OPTIONAL, 'Should the listener be queued?', false ],
95 95
         ];
96 96
     }
97 97
 
Please login to merge, or discard this patch.
src/Foundation/Generator/Commands/MigrationMakeCommand.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
     protected function getTableName(): string
60 60
     {
61
-        return once(function () {
61
+        return once(function() {
62 62
             return $this->option('table') ?? $this->ask('What is the name of the table/collection?', strtolower(Str::plural($this->getModuleName())));
63 63
         });
64 64
     }
@@ -71,17 +71,17 @@  discard block
 block discarded – undo
71 71
     protected function setOptions() :array
72 72
     {
73 73
         return [
74
-            ['mongo', null, InputOption::VALUE_OPTIONAL, 'Mongo migration.', null],
75
-            ['table', null, InputOption::VALUE_OPTIONAL, 'Name of the table/collection.', null],
74
+            [ 'mongo', null, InputOption::VALUE_OPTIONAL, 'Mongo migration.', null ],
75
+            [ 'table', null, InputOption::VALUE_OPTIONAL, 'Name of the table/collection.', null ],
76 76
         ];
77 77
     }
78 78
 
79 79
     protected function isMongoMigration(): bool
80 80
     {
81
-        return once(function () {
81
+        return once(function() {
82 82
             $option = $this->option('mongo');
83 83
             if ($option !== null)
84
-                $option = (bool)$option;
84
+                $option = (bool) $option;
85 85
 
86 86
             return $option === null ? $this->confirm('Is this migration for a mongodb database?', false) : $option;
87 87
         });
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     protected function getDestinationFilePath() :string
106 106
     {
107
-        return $this->getModule()->getPath() . $this->filePath . '/' . $this->getDestinationFileName() . '.php';
107
+        return $this->getModule()->getPath().$this->filePath.'/'.$this->getDestinationFileName().'.php';
108 108
     }
109 109
 
110 110
     /**
@@ -112,6 +112,6 @@  discard block
 block discarded – undo
112 112
      */
113 113
     private function getDestinationFileName()
114 114
     {
115
-        return date('Y_m_d_His_') . split_caps_to_underscore($this->getClassName());
115
+        return date('Y_m_d_His_').split_caps_to_underscore($this->getClassName());
116 116
     }
117 117
 }
Please login to merge, or discard this patch.
src/Foundation/Generator/Commands/CommandMakeCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     protected function setOptions(): array
69 69
     {
70 70
         return [
71
-            ['command', null, InputOption::VALUE_OPTIONAL, 'The terminal command that should be assigned.', null],
71
+            [ 'command', null, InputOption::VALUE_OPTIONAL, 'The terminal command that should be assigned.', null ],
72 72
         ];
73 73
     }
74 74
 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         return $this->getOption('command');
81 81
     }
82 82
 
83
-    protected function handleCommandOption($shortcut, $type, $question, $default){
84
-        return $this->ask('What is the name of the terminal command?',str_replace('command', '', strtolower($this->getModuleName()) . ':' . strtolower($this->getClassName())));
83
+    protected function handleCommandOption($shortcut, $type, $question, $default) {
84
+        return $this->ask('What is the name of the terminal command?', str_replace('command', '', strtolower($this->getModuleName()).':'.strtolower($this->getClassName())));
85 85
     }
86 86
 }
Please login to merge, or discard this patch.
src/Foundation/Generator/Support/Stub.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      */
18 18
     public function getPath()
19 19
     {
20
-        return get_foundation_path() . '/Generator/Stubs/' . $this->path;
20
+        return get_foundation_path().'/Generator/Stubs/'.$this->path;
21 21
     }
22 22
 
23 23
     public function getName()
Please login to merge, or discard this patch.
src/Foundation/Generator/Events/CommandGeneratedEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 {
20 20
     public function getConsoleCommand()
21 21
     {
22
-        return $this->getStub()->getOptions()["COMMAND_NAME"];
22
+        return $this->getStub()->getOptions()[ "COMMAND_NAME" ];
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
src/Foundation/Generator/Events/JobGeneratedEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,6 @@
 block discarded – undo
19 19
 {
20 20
     public function isSynchronous(): bool
21 21
     {
22
-        return $this->getStub()->getOptions()['sync'];
22
+        return $this->getStub()->getOptions()[ 'sync' ];
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
src/Foundation/Generator/Events/TestGeneratedEvent.php 1 patch
Spacing   +2 added lines, -2 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(){
22
-        return $this->getStub()->getOptions()['TYPE'];
21
+    public function getType() {
22
+        return $this->getStub()->getOptions()[ 'TYPE' ];
23 23
     }
24 24
 }
Please login to merge, or discard this patch.
src/Foundation/Generator/Abstracts/FileGeneratorCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     protected function setArguments(): array
28 28
     {
29
-        return [];
29
+        return [ ];
30 30
     }
31 31
 
32 32
     /**
@@ -36,6 +36,6 @@  discard block
 block discarded – undo
36 36
      */
37 37
     protected function setOptions() :array
38 38
     {
39
-        return [];
39
+        return [ ];
40 40
     }
41 41
 }
Please login to merge, or discard this patch.