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

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