Code Duplication    Length = 8-8 lines in 2 locations

src/VectorNetworkProject/TheMix/provider/JSON.php 1 location

@@ 126-133 (lines=8) @@
123
     *
124
     * @return bool
125
     */
126
    public function exists(string $key): bool
127
    {
128
        $config = new Config($this->path.$this->file, Config::JSON);
129
130
        return $config->exists($key)
131
            ? true
132
            : false;
133
    }
134
135
    /**
136
     * @param string $key

src/VectorNetworkProject/TheMix/provider/YAML.php 1 location

@@ 125-132 (lines=8) @@
122
     *
123
     * @return bool
124
     */
125
    public function exists(string $key): bool
126
    {
127
        $config = new Config($this->path.$this->file, Config::YAML);
128
129
        return $config->exists($key)
130
            ? true
131
            : false;
132
    }
133
134
    /**
135
     * @param string $key