Code Duplication    Length = 6-9 lines in 2 locations

includes/CrossCheck/CrossCheckInteractor.php 2 locations

@@ 110-115 (lines=6) @@
107
		Assert::parameterElementType( 'Wikibase\DataModel\Entity\Entity',  $entities, '$entities' );
108
109
		$results = array();
110
		foreach ( $entities as $entity ) {
111
			$entityId = $entity->getId()->getSerialization();
112
			if ( $entity instanceof StatementListProvider ) {
113
				$results[$entityId] = $this->crossCheckStatements( $entity->getStatements() );
114
			}
115
		}
116
117
		return $results;
118
	}
@@ 198-206 (lines=9) @@
195
		Assert::parameterElementType( 'Wikibase\DataModel\Entity\PropertyId',  $propertyIds, '$propertyIds' );
196
197
		$results = array();
198
		foreach ( $entities as $entity ) {
199
			$entityId = $entity->getId()->getSerialization();
200
			if ( $entity instanceof StatementListProvider ) {
201
				$results[$entityId] = $this->crossCheckStatementsWithProperties(
202
					$entity->getStatements(),
203
					$propertyIds
204
				);
205
			}
206
		}
207
208
		return $results;
209
	}