Code Duplication    Length = 5-5 lines in 2 locations

src/DataSource/ArrayDataSource.php 2 locations

@@ 221-225 (lines=5) @@
218
		$condition = $filter->getCondition();
219
		$values = $condition[$filter->getColumn()];
220
221
		if ($values['from'] !== null && $values['from'] !== '') {
222
			if ($values['from'] > $row[$filter->getColumn()]) {
223
				return false;
224
			}
225
		}
226
227
		if ($values['to'] !== null && $values['to'] !== '') {
228
			if ($values['to'] < $row[$filter->getColumn()]) {
@@ 227-231 (lines=5) @@
224
			}
225
		}
226
227
		if ($values['to'] !== null && $values['to'] !== '') {
228
			if ($values['to'] < $row[$filter->getColumn()]) {
229
				return false;
230
			}
231
		}
232
233
		return true;
234
	}