Code Duplication    Length = 13-13 lines in 2 locations

src/ConstraintCheck/Helper/ConstraintParameterParser.php 2 locations

@@ 209-221 (lines=13) @@
206
				return 'subclass';
207
			case $instanceOrSubclassId:
208
				return 'instanceOrSubclass';
209
			default:
210
				throw new ConstraintParameterException(
211
					( new ViolationMessage( 'wbqc-violation-message-parameter-oneof' ) )
212
						->withEntityId( new PropertyId( $relationId ), Role::CONSTRAINT_PARAMETER_PROPERTY )
213
						->withEntityIdList(
214
							[
215
								new ItemId( $instanceId ),
216
								new ItemId( $subclassId ),
217
								new ItemId( $instanceOrSubclassId ),
218
							],
219
							Role::CONSTRAINT_PARAMETER_VALUE
220
						)
221
				);
222
		}
223
	}
224
@@ 701-713 (lines=13) @@
698
				case $referencesId:
699
					$contextTypes[] = Context::TYPE_REFERENCE;
700
					break;
701
				default:
702
					throw new ConstraintParameterException(
703
						( new ViolationMessage( 'wbqc-violation-message-parameter-oneof' ) )
704
							->withEntityId( new PropertyId( $constraintScopeId ), Role::CONSTRAINT_PARAMETER_PROPERTY )
705
							->withEntityIdList(
706
								[
707
									new ItemId( $mainSnakId ),
708
									new ItemId( $qualifiersId ),
709
									new ItemId( $referencesId ),
710
								],
711
								Role::CONSTRAINT_PARAMETER_VALUE
712
							)
713
					);
714
			}
715
		}
716