Code Duplication    Length = 12-12 lines in 2 locations

src/Configuration.php 2 locations

@@ 126-137 (lines=12) @@
123
        return $configuration;
124
    }
125
126
    public function setRootDir(string $rootDir) : self
127
    {
128
        if (!is_dir($rootDir)) {
129
            throw new \InvalidArgumentException(
130
                sprintf('Root directory "%s" does not exist.', $rootDir)
131
            );
132
        }
133
134
        $this->rootDir = realpath($rootDir);
135
136
        return $this;
137
    }
138
139
    public function getRootDir() : string
140
    {
@@ 166-177 (lines=12) @@
163
        return $this->watchDirectories;
164
    }
165
166
    public function setTestsDirectory(string $testsDirectory) : self
167
    {
168
        if (!is_dir($testsDirectory)) {
169
            throw new \InvalidArgumentException(
170
                sprintf('Tests directory "%s" does not exist.', $testsDirectory)
171
            );
172
        }
173
174
        $this->testsDirectory = realpath($testsDirectory);
175
176
        return $this;
177
    }
178
179
    public function getTestsDirectory() : string
180
    {