Code Duplication    Length = 10-10 lines in 2 locations

src/Option/Configuration.php 1 location

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

src/Option/GlobalConfiguration.php 1 location

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