Code Duplication    Length = 4-4 lines in 2 locations

src/Kunstmaan/AdminListBundle/AdminList/Configurator/AbstractDoctrineDBALAdminListConfigurator.php 1 location

@@ 159-162 (lines=4) @@
156
            }
157
158
            // Apply sorting
159
            if (!empty($this->orderBy)) {
160
                $orderBy = $this->orderBy;
161
                $this->queryBuilder->orderBy($orderBy, ($this->orderDirection == 'DESC' ? 'DESC' : 'ASC'));
162
            }
163
        }
164
165
        return $this->queryBuilder;

src/Kunstmaan/TranslatorBundle/AdminList/TranslationAdminListConfigurator.php 1 location

@@ 301-304 (lines=4) @@
298
            }
299
300
            // Apply sorting
301
            if (!empty($this->orderBy)) {
302
                $orderBy = $this->orderBy;
303
                $this->queryBuilder->orderBy($orderBy, ($this->orderDirection == 'DESC' ? 'DESC' : 'ASC'));
304
            }
305
        }
306
307
        return $this->queryBuilder;