Code Duplication    Length = 10-10 lines in 2 locations

src/Option/Configuration.php 1 location

@@ 107-116 (lines=10) @@
104
     *
105
     * @return array
106
     */
107
    public static function get()
108
    {
109
        if (!self::exists()) {
110
            return [];
111
        }
112
113
        $config = json_decode(file_get_contents(self::$configFileName), true);
114
115
        return $config;
116
    }
117
118
    /**
119
     * Configuration skeleton

src/Option/GlobalConfiguration.php 1 location

@@ 37-46 (lines=10) @@
34
     *
35
     * @return array
36
     */
37
    public static function get()
38
    {
39
        if (!self::exists()) {
40
            return [];
41
        }
42
43
        $config = json_decode(file_get_contents(self::getConfigFile()), true);
44
45
        return $config;
46
    }
47
48
    /**
49
     * Configuration skeleton