Code Duplication    Length = 8-8 lines in 2 locations

Service/ImportService.php 1 location

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

Service/ExportService.php 1 location

@@ 132-139 (lines=8) @@
129
     *
130
     * @return string
131
     */
132
    protected function getFilePath($filename)
133
    {
134
        if ($filename{0} == '/' || strstr($filename, ':') !== false) {
135
            return $filename;
136
        }
137
138
        return getcwd() . '/' . $filename;
139
    }
140
141
    /**
142
     * Prepares JSON writer.