Code Duplication    Length = 8-8 lines in 2 locations

src/Codeception/SmartWeb/SetupGenerator.php 1 location

@@ 207-214 (lines=8) @@
204
     *
205
     * @return string
206
     */
207
    final protected function getPath(string $path, bool $inBasePath = false) : string
208
    {
209
        $pathPrefix = $this->setup->getWorkDir() . DIRECTORY_SEPARATOR;
210
        
211
        return $inBasePath
212
            ? $pathPrefix . $path
213
            : $pathPrefix . $this->setup->getTestsDir() . DIRECTORY_SEPARATOR . $path;
214
    }
215
    
216
    /**
217
     * @param string $path

src/Generator/BaseTestGenerator.php 1 location

@@ 157-164 (lines=8) @@
154
     *
155
     * @return string
156
     */
157
    final protected function getPath(string $path, bool $inBasePath = false) : string
158
    {
159
        $pathPrefix = $this->setup->getWorkDir() . DIRECTORY_SEPARATOR;
160
        
161
        return $inBasePath
162
            ? $pathPrefix . $path
163
            : $pathPrefix . $this->setup->getTestsDir() . DIRECTORY_SEPARATOR . $path;
164
    }
165
}
166