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

@@ 109-116 (lines=8) @@
106
     *
107
     * @return string
108
     */
109
    protected function getFilePath($filename)
110
    {
111
        if ($filename{0} == '/' || strstr($filename, ':') !== false) {
112
            return $filename;
113
        }
114
115
        return getcwd() . '/' . $filename;
116
    }
117
118
    /**
119
     * Prepares JSON writer.