Code Duplication    Length = 4-4 lines in 2 locations

lib/Ajde/Collection.php 2 locations

@@ 313-316 (lines=4) @@
310
                            strtotime($filterValue['start'].' 00:00:00')) : false;
311
                        $end = $filterValue['end'] ? date('Y-m-d H:i:s',
312
                            strtotime($filterValue['end'].' 23:59:59')) : false;
313
                        if ($start) {
314
                            $this->addFilter(new Ajde_Filter_Where((string) $this->getTable().'.'.$fieldName,
315
                                Ajde_Filter::FILTER_GREATEROREQUAL, $start));
316
                        }
317
                        if ($end) {
318
                            $this->addFilter(new Ajde_Filter_Where((string) $this->getTable().'.'.$fieldName,
319
                                Ajde_Filter::FILTER_LESSOREQUAL, $end));
@@ 317-320 (lines=4) @@
314
                            $this->addFilter(new Ajde_Filter_Where((string) $this->getTable().'.'.$fieldName,
315
                                Ajde_Filter::FILTER_GREATEROREQUAL, $start));
316
                        }
317
                        if ($end) {
318
                            $this->addFilter(new Ajde_Filter_Where((string) $this->getTable().'.'.$fieldName,
319
                                Ajde_Filter::FILTER_LESSOREQUAL, $end));
320
                        }
321
                    } else {
322
                        if ($fieldType == Ajde_Db::FIELD_TYPE_TEXT) {
323
                            // text fields (fuzzy)