Code Duplication    Length = 16-16 lines in 2 locations

src/PhpGitHooks/Module/PhpUnit/Infrastructure/Tool/PhpUnitProcessor.php 1 location

@@ 8-23 (lines=16) @@
5
use PhpGitHooks\Module\PhpUnit\Model\PhpUnitProcessorInterface;
6
use Symfony\Component\Process\Process;
7
8
class PhpUnitProcessor extends AbstractPhpUnitProcessor implements PhpUnitProcessorInterface
9
{
10
    /**
11
     * @param $options
12
     *
13
     * @return bool
14
     */
15
    public function process($options)
16
    {
17
        $tool = sprintf('php %s %s', $this->toolPathFinder->find('phpunit'), $options);
18
19
        $process = new Process($tool);
20
21
        return $this->runProcess($process);
22
    }
23
}
24

src/PhpGitHooks/Module/PhpUnit/Infrastructure/Tool/PhpUnitRandomizerProcessor.php 1 location

@@ 8-23 (lines=16) @@
5
use PhpGitHooks\Module\PhpUnit\Model\PhpUnitProcessorInterface;
6
use Symfony\Component\Process\Process;
7
8
class PhpUnitRandomizerProcessor extends AbstractPhpUnitProcessor implements PhpUnitProcessorInterface
9
{
10
    /**
11
     * @param string $options
12
     *
13
     * @return bool
14
     */
15
    public function process($options)
16
    {
17
        $tool = sprintf('php %s %s %s', $this->toolPathFinder->find('phpunit-randomizer'), '--order rand', $options);
18
19
        $process = new Process($tool);
20
21
        return $this->runProcess($process);
22
    }
23
}
24