Code Duplication    Length = 11-12 lines in 2 locations

system/modules/Migrations/objects/Parser/Object/Param.php 1 location

@@ 77-87 (lines=11) @@
74
            $this->model->{$objectParamValue['col']} = $objectParamValue['value'];
75
        }
76
        //check unparsed params
77
        foreach ($data as $key => $item) {
78
            //skip parsed and attribtes
79
            if ($key == '@attributes' || !empty($walked[$key])) {
80
                continue;
81
            }
82
            $param = new \Migrations\Migration\Object\Param();
83
            $param->parent_id = $this->param->id;
84
            $param->object_id = $this->object->object->id;
85
            $param->code = $key;
86
            $param->save();
87
        }
88
    }
89
90
    public function editor()

system/modules/Migrations/objects/Parser/Object/ParamsList.php 1 location

@@ 51-62 (lines=12) @@
48
            $walked[$param->code] = true;
49
        }
50
        //check unparsed params
51
        foreach ($this->data as $key => $data) {
52
            //skip parsed and attribtes
53
            if ($key == '@attributes' || !empty($walked[$key])) {
54
                continue;
55
            }
56
            $param = new \Migrations\Migration\Object\Param();
57
            $param->parent_id = $this->param->id;
58
            $param->object_id = $this->object->object->id;
59
            $param->code = $key;
60
            $param->type = 'param';
61
            $param->save();
62
        }
63
    }
64
65
    public function editor()