Code Duplication    Length = 3-3 lines in 3 locations

fields/field.reverse_relationship.php 2 locations

@@ 238-240 (lines=3) @@
235
        // sections
236
        $sections = new XMLElement('div', null, array('class' => 'column'));
237
        $this->appendSelectionSelect($sections);
238
        if (is_array($errors) && isset($errors['sections'])) {
239
            $sections = Widget::Error($sections, $errors['sections']);
240
        }
241
        $group->appendChild($sections);
242
243
        // field
@@ 246-248 (lines=3) @@
243
        // field
244
        $field = new XMLElement('div', null, array('class' => 'column'));
245
        $this->appendFieldSelect($field);
246
        if (is_array($errors) && isset($errors['field'])) {
247
            $field = Widget::Error($field, $errors['field']);
248
        }
249
        $group->appendChild($field);
250
251
        $wrapper->appendChild($fieldset);

fields/field.entry_relationship.php 1 location

@@ 1147-1149 (lines=3) @@
1144
			$sections = new XMLElement('fieldset');
1145
			
1146
			$this->appendSelectionSelect($sections);
1147
			if (is_array($errors) && isset($errors['sections'])) {
1148
				$sections = Widget::Error($sections, $errors['sections']);
1149
			}
1150
			$wrapper->appendChild($sections);
1151
			
1152
			// elements