Code Duplication    Length = 7-7 lines in 2 locations

src/Event.php 2 locations

@@ 191-197 (lines=7) @@
188
     *
189
     * @return Process
190
     */
191
    protected function runCommandInForeground()
192
    {
193
        $process = new Process($this->compileCommand(), $this->cwd, null, null, null);
194
        $process->run();
195
196
        return $process;
197
    }
198
199
    /**
200
     * Run the command in the background.
@@ 204-210 (lines=7) @@
201
     *
202
     * @return Process
203
     */
204
    protected function runCommandInBackground()
205
    {
206
        $process = new Process($this->compileCommand() . ' &', $this->cwd, null, null, null);
207
        $process->run();
208
209
        return $process;
210
    }
211
212
    /**
213
     * Get the mutex path for managing concurrency