Code Duplication    Length = 14-14 lines in 2 locations

app/Containers/Authentication/UI/API/Tests/Functional/ProxyLoginTest.php 1 location

@@ 280-293 (lines=14) @@
277
     *
278
     * @return  string
279
     */
280
    private function createTestingKey($fileName)
281
    {
282
        $filePath = storage_path($fileName);
283
284
        if (!file_exists($filePath)) {
285
            $keysStubDirectory = __DIR__ . '/Stubs/';
286
287
            copy($keysStubDirectory . $fileName, $filePath);
288
289
            $this->testingFilesCreated = true;
290
        }
291
292
        return $filePath;
293
    }
294
}
295

app/Containers/Authentication/UI/API/Tests/Functional/ProxyRefreshTest.php 1 location

@@ 89-102 (lines=14) @@
86
     *
87
     * @return  string
88
     */
89
    private function createTestingKey($fileName)
90
    {
91
        $filePath = storage_path($fileName);
92
93
        if (!file_exists($filePath)) {
94
            $keysStubDirectory = __DIR__ . '/Stubs/';
95
96
            copy($keysStubDirectory . $fileName, $filePath);
97
98
            $this->testingFilesCreated = true;
99
        }
100
101
        return $filePath;
102
    }
103
}
104