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

@@ 1174-1176 (lines=3) @@
1171
			$sections = new XMLElement('fieldset');
1172
			
1173
			$this->appendSelectionSelect($sections);
1174
			if (is_array($errors) && isset($errors['sections'])) {
1175
				$sections = Widget::Error($sections, $errors['sections']);
1176
			}
1177
			$wrapper->appendChild($sections);
1178
			
1179
			// elements