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
@@ 691-703 (lines=13) @@
688
				case $referencesId:
689
					$contextTypes[] = Context::TYPE_REFERENCE;
690
					break;
691
				default:
692
					throw new ConstraintParameterException(
693
						( new ViolationMessage( 'wbqc-violation-message-parameter-oneof' ) )
694
							->withEntityId( new PropertyId( $constraintScopeId ), Role::CONSTRAINT_PARAMETER_PROPERTY )
695
							->withEntityIdList(
696
								[
697
									new ItemId( $mainSnakId ),
698
									new ItemId( $qualifiersId ),
699
									new ItemId( $referencesId ),
700
								],
701
								Role::CONSTRAINT_PARAMETER_VALUE
702
							)
703
					);
704
			}
705
		}
706