Code Duplication    Length = 10-10 lines in 2 locations

module/Settings/src/Settings/Entity/SettingsContainer.php 1 location

@@ 47-56 (lines=10) @@
44
        return $this;
45
    }
46
    
47
    public function get($key = null, $default = null, $set = false)
48
    {
49
        if (isset($this->_settings[$key])) {
50
            return $this->_settings[$key];
51
        }
52
        if ($set) {
53
            $this->set($key, $default);
54
        }
55
        return $default;
56
    }
57
    
58
    public function getSettings()
59
    {

module/Jobs/src/Jobs/Entity/TemplateValues.php 1 location

@@ 225-234 (lines=10) @@
222
     * @param bool $set
223
     * @return null
224
     */
225
    public function get($key = null, $default = null, $set = false)
226
    {
227
        if (isset($this->_freeValues[$key])) {
228
            return $this->_freeValues[$key];
229
        }
230
        if ($set) {
231
            $this->set($key, $default);
232
        }
233
        return $default;
234
    }
235
236
    /**
237
     * @param $key