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

@@ 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
     * Prepares JSON writer.