Code Duplication    Length = 5-5 lines in 2 locations

src/Charcoal/Config/AbstractConfig.php 1 location

@@ 247-251 (lines=5) @@
244
        }
245
246
        $setter = 'set'.ucfirst($key);
247
        if (is_callable([ $this, $setter ])) {
248
            $this->{$setter}($value);
249
        } else {
250
            $this->{$key} = $value;
251
        }
252
253
        $this->keys[$key] = true;
254
    }

src/Charcoal/Config/AbstractEntity.php 1 location

@@ 244-248 (lines=5) @@
241
        }
242
243
        $setter = 'set'.ucfirst($key);
244
        if (is_callable([ $this, $setter ])) {
245
            $this->{$setter}($value);
246
        } else {
247
            $this->{$key} = $value;
248
        }
249
250
        $this->keys[$key] = true;
251
    }