Code Duplication    Length = 13-13 lines in 2 locations

src/ConstraintCheck/Helper/ConstraintParameterParser.php 2 locations

@@ 199-211 (lines=13) @@
196
				return 'subclass';
197
			case $instanceOrSubclassId:
198
				return 'instanceOrSubclass';
199
			default:
200
				throw new ConstraintParameterException(
201
					( new ViolationMessage( 'wbqc-violation-message-parameter-oneof' ) )
202
						->withEntityId( new PropertyId( $relationId ), Role::CONSTRAINT_PARAMETER_PROPERTY )
203
						->withEntityIdList(
204
							[
205
								new ItemId( $instanceId ),
206
								new ItemId( $subclassId ),
207
								new ItemId( $instanceOrSubclassId ),
208
							],
209
							Role::CONSTRAINT_PARAMETER_VALUE
210
						)
211
				);
212
		}
213
	}
214
@@ 699-711 (lines=13) @@
696
				case $referencesId:
697
					$contextTypes[] = Context::TYPE_REFERENCE;
698
					break;
699
				default:
700
					throw new ConstraintParameterException(
701
						( new ViolationMessage( 'wbqc-violation-message-parameter-oneof' ) )
702
							->withEntityId( new PropertyId( $constraintScopeId ), Role::CONSTRAINT_PARAMETER_PROPERTY )
703
							->withEntityIdList(
704
								[
705
									new ItemId( $mainSnakId ),
706
									new ItemId( $qualifiersId ),
707
									new ItemId( $referencesId ),
708
								],
709
								Role::CONSTRAINT_PARAMETER_VALUE
710
							)
711
					);
712
			}
713
		}
714