Code Duplication    Length = 5-5 lines in 2 locations

Grid/Source/DocumentGridSource.php 1 location

@@ 38-42 (lines=5) @@
35
36
        $columns = $this->getColumns();
37
        $fieldList = [];
38
        foreach ($columns as $column) {
39
            if ($column instanceof GridColumn && $column->isSearchable()) {
40
                $fieldList[$column->getField()] = true;
41
            }
42
        }
43
        if ($this->filter) {
44
            $validFilters = array_intersect_key($this->filter, $classFields);
45

Grid/Source/EntityGridSource.php 1 location

@@ 26-30 (lines=5) @@
23
    {
24
        $columns = $this->getColumns();
25
        $fieldList = [];
26
        foreach ($columns as $column) {
27
            if ($column instanceof GridColumn && $column->isSearchable()) {
28
                $fieldList[$column->getField()] = true;
29
            }
30
        }
31
32
        $qb = $this->entityManager->createQueryBuilder();
33
        $orderBy = array();