Code Duplication    Length = 8-8 lines in 2 locations

src/Models/ElementModel.php 1 location

@@ 96-103 (lines=8) @@
93
     *
94
     * @return static|bool
95
     */
96
    public static function create($fields)
97
    {
98
        if (!isset($fields['IBLOCK_ID'])) {
99
            $fields['IBLOCK_ID'] = static::iblockId();
100
        }
101
102
        return parent::create($fields);
103
    }
104
105
    /**
106
     * Corresponding section model full qualified class name.

src/Models/SectionModel.php 1 location

@@ 96-103 (lines=8) @@
93
     *
94
     * @return static|bool
95
     */
96
    public static function create($fields)
97
    {
98
        if (!isset($fields['IBLOCK_ID'])) {
99
            $fields['IBLOCK_ID'] = static::iblockId();
100
        }
101
102
        return parent::create($fields);
103
    }
104
105
    /**
106
     * Get IDs of direct children of the section.