Code Duplication    Length = 7-7 lines in 2 locations

fields/field.entry_relationship.php 2 locations

@@ 1107-1113 (lines=7) @@
1104
					$selectWrap->appendChild($select);
1105
					$fieldset->appendChild($selectWrap);
1106
				}
1107
				if ($this->is('allow_new')) {
1108
					$fieldset->appendChild(new XMLElement('button', __('Create new'), array(
1109
						'type' => 'button',
1110
						'class' => 'create',
1111
						'data-create' => '',
1112
					)));
1113
				}
1114
				if ($this->is('allow_link')) {
1115
					$fieldset->appendChild(new XMLElement('button', __('Link to entry'), array(
1116
						'type' => 'button',
@@ 1114-1120 (lines=7) @@
1111
						'data-create' => '',
1112
					)));
1113
				}
1114
				if ($this->is('allow_link')) {
1115
					$fieldset->appendChild(new XMLElement('button', __('Link to entry'), array(
1116
						'type' => 'button',
1117
						'class' => 'link',
1118
						'data-link' => '',
1119
					)));
1120
				}
1121
				$wrap->appendChild($fieldset);
1122
			}
1123
			else {