Code Duplication    Length = 10-10 lines in 2 locations

src/Task/Testing/PHPUnit.php 1 location

@@ 38-47 (lines=10) @@
35
     */
36
    protected $files = '';
37
38
    public function __construct($pathToPhpUnit = null)
39
    {
40
        $this->command = $pathToPhpUnit;
41
        if (!$this->command) {
42
            $this->command = $this->findExecutablePhar('phpunit');
43
        }
44
        if (!$this->command) {
45
            throw new \Robo\Exception\TaskException(__CLASS__, "Neither local phpunit nor global composer installation not found");
46
        }
47
    }
48
49
    /**
50
     * @param string $filter

src/Task/Composer/Base.php 1 location

@@ 54-63 (lines=10) @@
51
     *
52
     * @throws \Robo\Exception\TaskException
53
     */
54
    public function __construct($pathToComposer = null)
55
    {
56
        $this->command = $pathToComposer;
57
        if (!$this->command) {
58
            $this->command = $this->findExecutablePhar('composer');
59
        }
60
        if (!$this->command) {
61
            throw new TaskException(__CLASS__, "Neither local composer.phar nor global composer installation could be found.");
62
        }
63
    }
64
65
    /**
66
     * adds `prefer-dist` option to composer