Code Duplication    Length = 8-9 lines in 2 locations

src/Autocreate/Handlers/OnBeforeUserTypeAdd.php 1 location

@@ 42-49 (lines=8) @@
39
     *
40
     * @return array
41
     */
42
    public function getReplace()
43
    {
44
        return [
45
            'fields' => var_export($this->fields, true),
46
            'code'   => "'".$this->fields['FIELD_NAME']."'",
47
            'entity' => "'".$this->fields['ENTITY_ID']."'",
48
        ];
49
    }
50
}
51

src/Autocreate/Handlers/OnBeforeUserTypeDelete.php 1 location

@@ 44-52 (lines=9) @@
41
     *
42
     * @return array
43
     */
44
    public function getReplace()
45
    {
46
        return [
47
            'iblockId' => $this->fields['IBLOCK_ID'],
48
            'code'     => "'".$this->fields['FIELD_NAME']."'",
49
            'entity'   => "'".$this->fields['ENTITY_ID']."'",
50
            'fields'   => var_export($this->fields, true),
51
        ];
52
    }
53
}
54