Code Duplication    Length = 8-8 lines in 2 locations

Service/ImportService.php 1 location

@@ 66-73 (lines=8) @@
63
     *
64
     * @return string
65
     */
66
    protected function getFilePath($filename)
67
    {
68
        if ($filename[0] == '/' || strstr($filename, ':') !== false) {
69
            return $filename;
70
        }
71
72
        return realpath(getcwd() . '/' . $filename);
73
    }
74
75
    protected function getReader(IndexService $manager, $filename, $options): JsonReader
76
    {

Service/ExportService.php 1 location

@@ 100-107 (lines=8) @@
97
     *
98
     * @return string
99
     */
100
    protected function getFilePath($filename): string
101
    {
102
        if ($filename[0] == '/' || strstr($filename, ':') !== false) {
103
            return $filename;
104
        }
105
106
        return getcwd() . '/' . $filename;
107
    }
108
109
    protected function getWriter(string $filename, int $count): JsonWriter
110
    {