Code Duplication    Length = 16-17 lines in 2 locations

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

@@ 158-174 (lines=17) @@
155
     * @param $property
156
     * @param $value
157
     */
158
    public function __set($property, $value)
159
    {
160
        $this->checkWriteAccess();
161
        
162
        $setter = 'set' . ucfirst($property);
163
        if (method_exists($this, $setter)) {
164
            $this->$setter($value);
165
            return;
166
        }
167
        
168
        if (property_exists($this, $property)) {
169
            $this->$property = $value;
170
            return;
171
        }
172
        
173
        $this->set($property, $value);
174
    }
175
    
176
177
    /**

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

@@ 296-311 (lines=16) @@
293
        return $this->get($property);
294
    }
295
296
    public function __set($property, $value)
297
    {
298
        //$this->checkWriteAccess();
299
        $setter = 'set' . ucfirst($property);
300
        if (method_exists($this, $setter)) {
301
            $this->$setter($value);
302
            return;
303
        }
304
305
        if (property_exists($this, $property)) {
306
            $this->$property = $value;
307
            return;
308
        }
309
310
        $this->set($property, $value);
311
    }
312
313
    public function __isset($property)
314
    {