Code Duplication    Length = 8-8 lines in 2 locations

Service/ExportService.php 1 location

@@ 85-92 (lines=8) @@
82
     *
83
     * @return string
84
     */
85
    protected function getFilePath($filename)
86
    {
87
        if ($filename{0} == '/' || strstr($filename, ':') !== false) {
88
            return $filename;
89
        }
90
91
        return getcwd() . '/' . $filename;
92
    }
93
94
    /**
95
     * Returns scan results iterator.

Service/ImportService.php 1 location

@@ 69-76 (lines=8) @@
66
     *
67
     * @return string
68
     */
69
    protected function getFilePath($filename)
70
    {
71
        if ($filename{0} == '/' || strstr($filename, ':') !== false) {
72
            return $filename;
73
        }
74
75
        return realpath(getcwd() . '/' . $filename);
76
    }
77
78
    /**
79
     * Prepares JSON reader.