Code Duplication    Length = 9-10 lines in 2 locations

src/ConstraintCheck/Context/QualifierContext.php 1 location

@@ 39-47 (lines=9) @@
36
		return array_values( $snaks->getArrayCopy() );
37
	}
38
39
	public function getCursor() {
40
		return new QualifierContextCursor(
41
			$this->entity->getId()->getSerialization(),
42
			$this->statement->getPropertyId()->getSerialization(),
43
			$this->statement->getGuid(),
44
			$this->snak->getHash(),
45
			$this->snak->getPropertyId()->getSerialization()
46
		);
47
	}
48
49
	protected function &getMainArray( array &$container ) {
50
		$statementArray = &$this->getStatementArray(

src/ConstraintCheck/Context/ReferenceContext.php 1 location

@@ 47-56 (lines=10) @@
44
		return array_values( $snaks->getArrayCopy() );
45
	}
46
47
	public function getCursor() {
48
		return new ReferenceContextCursor(
49
			$this->entity->getId()->getSerialization(),
50
			$this->statement->getPropertyId()->getSerialization(),
51
			$this->statement->getGuid(),
52
			$this->snak->getHash(),
53
			$this->snak->getPropertyId()->getSerialization(),
54
			$this->reference->getHash()
55
		);
56
	}
57
58
	protected function &getMainArray( array &$container ) {
59
		$statementArray = &$this->getStatementArray(