Completed
Pull Request — master (#973)
by
unknown
03:35
created
src/Support/Stub.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,9 +71,9 @@  discard block
 block discarded – undo
71 71
      */
72 72
     public function getPath()
73 73
     {
74
-        $path = static::getBasePath() . $this->path;
74
+        $path = static::getBasePath().$this->path;
75 75
 
76
-        return file_exists($path) ? $path : __DIR__ . '/../Commands/stubs' . $this->path;
76
+        return file_exists($path) ? $path : __DIR__.'/../Commands/stubs'.$this->path;
77 77
     }
78 78
 
79 79
     /**
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $contents = file_get_contents($this->getPath());
107 107
 
108 108
         foreach ($this->replaces as $search => $replace) {
109
-            $contents = str_replace('$' . strtoupper($search) . '$', $replace, $contents);
109
+            $contents = str_replace('$'.strtoupper($search).'$', $replace, $contents);
110 110
         }
111 111
 
112 112
         return $contents;
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function saveTo($path, $filename)
134 134
     {
135
-        return (bool) file_put_contents($path . '/' . $filename, $this->getContents());
135
+        return (bool) file_put_contents($path.'/'.$filename, $this->getContents());
136 136
     }
137 137
 
138 138
     /**
Please login to merge, or discard this patch.
src/Commands/ListenerMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     {
93 93
         $eventPath = GenerateConfigReader::read('event');
94 94
 
95
-        return $this->getClassNamespace($module) . "\\" . $eventPath->getPath() . "\\" . $this->option('event');
95
+        return $this->getClassNamespace($module)."\\".$eventPath->getPath()."\\".$this->option('event');
96 96
     }
97 97
 
98 98
     /**
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 
105 105
         $listenerPath = GenerateConfigReader::read('listener');
106 106
 
107
-        return $path . $listenerPath->getPath() . '/' . $this->getFileName() . '.php';
107
+        return $path.$listenerPath->getPath().'/'.$this->getFileName().'.php';
108 108
     }
109 109
 
110 110
     /**
Please login to merge, or discard this patch.
src/Commands/EventMakeCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,11 +46,11 @@
 block discarded – undo
46 46
      */
47 47
     public function getDestinationFilePath()
48 48
     {
49
-        $path       = $this->laravel['modules']->getModulePath($this->getModuleName());
49
+        $path = $this->laravel['modules']->getModulePath($this->getModuleName());
50 50
 
51 51
         $eventPath = GenerateConfigReader::read('event');
52 52
 
53
-        return $path . $eventPath->getPath() . '/' . $this->getFileName() . '.php';
53
+        return $path.$eventPath->getPath().'/'.$this->getFileName().'.php';
54 54
     }
55 55
 
56 56
     /**
Please login to merge, or discard this patch.