@@ -119,25 +119,25 @@ discard block |
||
119 | 119 | $command = ''; |
120 | 120 | |
121 | 121 | if ($this->mutuallyExclusive) { |
122 | - $command .= '(touch ' . $this->getMutexPath() . '; '; |
|
122 | + $command .= '(touch '.$this->getMutexPath().'; '; |
|
123 | 123 | } |
124 | 124 | |
125 | 125 | if ($this->cwd) { |
126 | - $command .= 'cd ' . $this->cwd . '; '; |
|
126 | + $command .= 'cd '.$this->cwd.'; '; |
|
127 | 127 | } |
128 | 128 | |
129 | 129 | if ($this->user) { |
130 | - $command .= 'sudo -u ' . $this->user . '; '; |
|
130 | + $command .= 'sudo -u '.$this->user.'; '; |
|
131 | 131 | } |
132 | 132 | |
133 | 133 | $command .= $this->command; |
134 | 134 | |
135 | 135 | if ($this->mutuallyExclusive) { |
136 | - $command .= ' ; rm ' . $this->getMutexPath() . ');'; |
|
136 | + $command .= ' ; rm '.$this->getMutexPath().');'; |
|
137 | 137 | } |
138 | 138 | |
139 | 139 | // e.g. 1>> /dev/null 2>> /dev/null |
140 | - $command .= ' 1' . $redirect . ' ' . $this->output . ' 2' . $redirect . ' ' . $this->errorOutput; |
|
140 | + $command .= ' 1'.$redirect.' '.$this->output.' 2'.$redirect.' '.$this->errorOutput; |
|
141 | 141 | |
142 | 142 | return $command; |
143 | 143 | } |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | protected function runCommandInBackground() |
185 | 185 | { |
186 | 186 | (new Process( |
187 | - $this->compileCommand() . ' &', $this->cwd, null, null, null |
|
187 | + $this->compileCommand().' &', $this->cwd, null, null, null |
|
188 | 188 | ))->run(); |
189 | 189 | } |
190 | 190 | |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | */ |
196 | 196 | protected function getMutexPath() |
197 | 197 | { |
198 | - return rtrim(sys_get_temp_dir(), '/') . '/scheduled-event-' . md5($this->cwd . $this->command); |
|
198 | + return rtrim(sys_get_temp_dir(), '/').'/scheduled-event-'.md5($this->cwd.$this->command); |
|
199 | 199 | } |
200 | 200 | |
201 | 201 | /** |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | */ |
259 | 259 | private function inTimeInterval($startTime, $endTime) |
260 | 260 | { |
261 | - return function () use ($startTime, $endTime) { |
|
261 | + return function() use ($startTime, $endTime) { |
|
262 | 262 | $now = Carbon::now()->getTimestamp(); |
263 | 263 | return $now >= strtotime($startTime) && $now <= strtotime($endTime); |
264 | 264 | }; |