Passed
Push — main ( d360e2...f50958 )
by Mohammad
07:14 queued 03:00
created
src/Console/Commands/Traitconsole.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
      */
37 37
     protected function getStub()
38 38
     {
39
-        if ($this->option('boot') != 'DummyMethod'){
39
+        if ($this->option('boot') != 'DummyMethod') {
40 40
             return __DIR__ . '/stubs/boot-trait.stub';
41 41
         }
42 42
 
43
-        if ($this->option('scope')  != 'DummyMethod' ) {
43
+        if ($this->option('scope') != 'DummyMethod') {
44 44
             return __DIR__ . '/stubs/scope-trait.stub';
45 45
         }
46 46
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
 
86 86
 
87 87
             $class = str_replace($this->getNamespace($name) . '\\', '', $name);
88
-            $bootMetod='boot'.$this->option('boot');
88
+            $bootMetod = 'boot' . $this->option('boot');
89 89
             $new = str_replace('DummyTrait', $class, $stub);
90 90
             return str_replace('bootDummyMethod', $bootMetod, $new);
91 91
 
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
         if ($this->option('scope') != 'DummyMethod') {
95 95
 
96 96
             $class = str_replace($this->getNamespace($name) . '\\', '', $name);
97
-            $scopeMetod='scope'.$this->option('scope');
98
-            $new =str_replace('DummyTrait', $class, $stub);
97
+            $scopeMetod = 'scope' . $this->option('scope');
98
+            $new = str_replace('DummyTrait', $class, $stub);
99 99
             return str_replace('scopeDummyMethod', $scopeMetod, $new);
100 100
         }
101 101
 
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
     protected function getOptions()
112 112
     {
113 113
         return [
114
-            ['boot', 'b', InputOption::VALUE_OPTIONAL, 'generated trait should contain an eloquent boot method','DummyMethod'],
115
-            ['scope', 's', InputOption::VALUE_OPTIONAL, 'generated trait should contain an eloquent query scope','DummyMethod']
114
+            [ 'boot', 'b', InputOption::VALUE_OPTIONAL, 'generated trait should contain an eloquent boot method', 'DummyMethod' ],
115
+            [ 'scope', 's', InputOption::VALUE_OPTIONAL, 'generated trait should contain an eloquent query scope', 'DummyMethod' ]
116 116
         ];
117 117
     }
118 118
 
Please login to merge, or discard this patch.