Code Duplication    Length = 7-7 lines in 2 locations

fields/field.entry_relationship.php 2 locations

@@ 1114-1120 (lines=7) @@
1111
					$selectWrap->appendChild($select);
1112
					$fieldset->appendChild($selectWrap);
1113
				}
1114
				if ($this->is('allow_new')) {
1115
					$fieldset->appendChild(new XMLElement('button', __('Create new'), array(
1116
						'type' => 'button',
1117
						'class' => 'create',
1118
						'data-create' => '',
1119
					)));
1120
				}
1121
				if ($this->is('allow_link')) {
1122
					$fieldset->appendChild(new XMLElement('button', __('Link to entry'), array(
1123
						'type' => 'button',
@@ 1121-1127 (lines=7) @@
1118
						'data-create' => '',
1119
					)));
1120
				}
1121
				if ($this->is('allow_link')) {
1122
					$fieldset->appendChild(new XMLElement('button', __('Link to entry'), array(
1123
						'type' => 'button',
1124
						'class' => 'link',
1125
						'data-link' => '',
1126
					)));
1127
				}
1128
				$wrap->appendChild($fieldset);
1129
			}
1130
			else {