Code Duplication    Length = 3-3 lines in 3 locations

fields/field.reverse_relationship.php 2 locations

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

fields/field.entry_relationship.php 1 location

@@ 1227-1229 (lines=3) @@
1224
			$sections = new XMLElement('fieldset');
1225
1226
			$this->appendSelectionSelect($sections);
1227
			if (is_array($errors) && isset($errors['sections'])) {
1228
				$sections = Widget::Error($sections, $errors['sections']);
1229
			}
1230
			$wrapper->appendChild($sections);
1231
1232
			// elements