Code Duplication    Length = 7-7 lines in 2 locations

fields/field.entry_relationship.php 2 locations

@@ 1004-1010 (lines=7) @@
1001
					$selectWrap->appendChild($select);
1002
					$fieldset->appendChild($selectWrap);
1003
				}
1004
				if ($this->is('allow_new')) {
1005
					$fieldset->appendChild(new XMLElement('button', __('Create new'), array(
1006
						'type' => 'button',
1007
						'class' => 'create',
1008
						'data-create' => '',
1009
					)));
1010
				}
1011
				if ($this->is('allow_link')) {
1012
					$fieldset->appendChild(new XMLElement('button', __('Link to entry'), array(
1013
						'type' => 'button',
@@ 1011-1017 (lines=7) @@
1008
						'data-create' => '',
1009
					)));
1010
				}
1011
				if ($this->is('allow_link')) {
1012
					$fieldset->appendChild(new XMLElement('button', __('Link to entry'), array(
1013
						'type' => 'button',
1014
						'class' => 'link',
1015
						'data-link' => '',
1016
					)));
1017
				}
1018
				$wrap->appendChild($fieldset);
1019
			}
1020
			else {