Code Duplication    Length = 8-8 lines in 2 locations

src/Models/ElementModel.php 1 location

@@ 115-122 (lines=8) @@
112
     *
113
     * @return static|bool
114
     */
115
    public static function create($fields)
116
    {
117
        if (!isset($fields['IBLOCK_ID'])) {
118
            $fields['IBLOCK_ID'] = static::iblockId();
119
        }
120
121
        return static::internalCreate($fields);
122
    }
123
124
    public static function internalDirectCreate($bxObject, $fields)
125
    {

src/Models/SectionModel.php 1 location

@@ 108-115 (lines=8) @@
105
     *
106
     * @return static|bool
107
     */
108
    public static function create($fields)
109
    {
110
        if (!isset($fields['IBLOCK_ID'])) {
111
            $fields['IBLOCK_ID'] = static::iblockId();
112
        }
113
114
        return static::internalCreate($fields);
115
    }
116
117
    /**
118
     * Get IDs of direct children of the section.