Code Duplication    Length = 8-8 lines in 2 locations

Service/ExportService.php 1 location

@@ 77-84 (lines=8) @@
74
     *
75
     * @return string
76
     */
77
    protected function getFilePath($filename)
78
    {
79
        if ($filename{0} == '/' || strstr($filename, ':') !== false) {
80
            return $filename;
81
        }
82
83
        return getcwd() . '/' . $filename;
84
    }
85
86
    /**
87
     * Returns scan results iterator.

Service/ImportService.php 1 location

@@ 95-102 (lines=8) @@
92
     *
93
     * @return string
94
     */
95
    protected function getFilePath($filename)
96
    {
97
        if ($filename{0} == '/' || strstr($filename, ':') !== false) {
98
            return $filename;
99
        }
100
101
        return realpath(getcwd() . '/' . $filename);
102
    }
103
104
    /**
105
     * Prepares JSON reader.