Code Duplication    Length = 5-5 lines in 2 locations

Command/RunCommand.php 2 locations

@@ 285-289 (lines=5) @@
282
            $newErrorOutput = substr($data['process']->getErrorOutput(), $data['error_output_pointer']);
283
            $data['error_output_pointer'] += strlen($newErrorOutput);
284
285
            if (!empty($newOutput)) {
286
                $event = new NewOutputEvent($data['job'], $newOutput, NewOutputEvent::TYPE_STDOUT);
287
                $this->dispatcher->dispatch($event);
288
                $newOutput = $event->getNewOutput();
289
            }
290
291
            if (!empty($newErrorOutput)) {
292
                $event = new NewOutputEvent($data['job'], $newErrorOutput, NewOutputEvent::TYPE_STDERR);
@@ 291-295 (lines=5) @@
288
                $newOutput = $event->getNewOutput();
289
            }
290
291
            if (!empty($newErrorOutput)) {
292
                $event = new NewOutputEvent($data['job'], $newErrorOutput, NewOutputEvent::TYPE_STDERR);
293
                $this->dispatcher->dispatch($event);
294
                $newErrorOutput = $event->getNewOutput();
295
            }
296
297
            if ($this->verbose) {
298
                if (!empty($newOutput)) {