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

@@ 117-124 (lines=8) @@
114
     *
115
     * @return string
116
     */
117
    protected function getFilePath($filename)
118
    {
119
        if ($filename{0} == '/' || strstr($filename, ':') !== false) {
120
            return $filename;
121
        }
122
123
        return getcwd() . '/' . $filename;
124
    }
125
126
    /**
127
     * Prepares JSON writer.