Code Duplication    Length = 10-10 lines in 2 locations

Apps/Model/Admin/Profile/FormSettings.php 1 location

@@ 20-29 (lines=10) @@
17
     * Construct model with default values
18
     * @param array $configs
19
     */
20
    public function __construct(array $configs)
21
    {
22
        foreach ($configs as $property => $value) {
23
            if (property_exists($this, $property)) {
24
                $this->$property = $value;
25
            }
26
        }
27
28
        parent::__construct();
29
    }
30
31
    /**
32
    * Labels

Apps/Model/Admin/Search/FormSettings.php 1 location

@@ 20-29 (lines=10) @@
17
     * Construct model with default values
18
     * @param array $configs
19
     */
20
    public function __construct(array $configs)
21
    {
22
        foreach ($configs as $property => $value) {
23
            if (property_exists($this, $property)) {
24
                $this->$property = $value;
25
            }
26
        }
27
28
        parent::__construct();
29
    }
30
31
    /**
32
    * Labels for admin settings form