Code Duplication    Length = 13-13 lines in 2 locations

src/ConstraintCheck/Helper/ConstraintParameterParser.php 2 locations

@@ 198-210 (lines=13) @@
195
				return 'subclass';
196
			case $instanceOrSubclassId:
197
				return 'instanceOrSubclass';
198
			default:
199
				throw new ConstraintParameterException(
200
					( new ViolationMessage( 'wbqc-violation-message-parameter-oneof' ) )
201
						->withEntityId( new PropertyId( $relationId ), Role::CONSTRAINT_PARAMETER_PROPERTY )
202
						->withEntityIdList(
203
							[
204
								new ItemId( $instanceId ),
205
								new ItemId( $subclassId ),
206
								new ItemId( $instanceOrSubclassId ),
207
							],
208
							Role::CONSTRAINT_PARAMETER_VALUE
209
						)
210
				);
211
		}
212
	}
213
@@ 690-702 (lines=13) @@
687
				case $referencesId:
688
					$contextTypes[] = Context::TYPE_REFERENCE;
689
					break;
690
				default:
691
					throw new ConstraintParameterException(
692
						( new ViolationMessage( 'wbqc-violation-message-parameter-oneof' ) )
693
							->withEntityId( new PropertyId( $constraintScopeId ), Role::CONSTRAINT_PARAMETER_PROPERTY )
694
							->withEntityIdList(
695
								[
696
									new ItemId( $mainSnakId ),
697
									new ItemId( $qualifiersId ),
698
									new ItemId( $referencesId ),
699
								],
700
								Role::CONSTRAINT_PARAMETER_VALUE
701
							)
702
					);
703
			}
704
		}
705