Code Duplication    Length = 13-14 lines in 2 locations

lib/Db/IndexesRequest.php 2 locations

@@ 117-130 (lines=14) @@
114
	/**
115
	 * @return Index[]
116
	 */
117
	public function getErrorIndexes(): array {
118
119
		$qb = $this->getIndexesSelectSql();
120
		$this->limitToErr($qb);
121
122
		$indexes = [];
123
		$cursor = $qb->execute();
124
		while ($data = $cursor->fetch()) {
125
			$indexes[] = $this->parseIndexesSelectSql($data);
126
		}
127
		$cursor->closeCursor();
128
129
		return $indexes;
130
	}
131
132
133
	/**
@@ 320-332 (lines=13) @@
317
	 *
318
	 * @return Index[]
319
	 */
320
	public function getIndexesFromProvider(string $providerId): array {
321
		$qb = $this->getIndexesSelectSql();
322
		$this->limitToProviderId($qb, $providerId);
323
324
		$indexes = [];
325
		$cursor = $qb->execute();
326
		while ($data = $cursor->fetch()) {
327
			$indexes[] = $this->parseIndexesSelectSql($data);
328
		}
329
		$cursor->closeCursor();
330
331
		return $indexes;
332
	}
333
334
335
}