Code Duplication    Length = 3-3 lines in 3 locations

fields/field.reverse_relationship.php 2 locations

@@ 226-228 (lines=3) @@
223
        // sections
224
        $sections = new XMLElement('div', null, array('class' => 'column'));
225
        $this->appendSelectionSelect($sections);
226
        if (is_array($errors) && isset($errors['sections'])) {
227
            $sections = Widget::Error($sections, $errors['sections']);
228
        }
229
        $group->appendChild($sections);
230
        
231
        // field
@@ 234-236 (lines=3) @@
231
        // field
232
        $field = new XMLElement('div', null, array('class' => 'column'));
233
        $this->appendFieldSelect($field);
234
        if (is_array($errors) && isset($errors['field'])) {
235
            $field = Widget::Error($field, $errors['field']);
236
        }
237
        $group->appendChild($field);
238
        
239
        $wrapper->appendChild($fieldset);

fields/field.entry_relationship.php 1 location

@@ 1142-1144 (lines=3) @@
1139
			$sections = new XMLElement('fieldset');
1140
			
1141
			$this->appendSelectionSelect($sections);
1142
			if (is_array($errors) && isset($errors['sections'])) {
1143
				$sections = Widget::Error($sections, $errors['sections']);
1144
			}
1145
			$wrapper->appendChild($sections);
1146
			
1147
			// elements