Code Duplication    Length = 14-14 lines in 2 locations

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

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

@@ 210-223 (lines=14) @@
207
     *
208
     * @return  string
209
     */
210
    private function createTestingKey($fileName)
211
    {
212
        $filePath = storage_path($fileName);
213
214
        if (!file_exists($filePath)) {
215
            $keysStubDirectory = __DIR__ . '/Stubs/';
216
217
            copy($keysStubDirectory . $fileName, $filePath);
218
219
            $this->testingFilesCreated = true;
220
        }
221
222
        return $filePath;
223
    }
224
}
225