Code Duplication    Length = 4-4 lines in 2 locations

lib/Ajde/Collection.php 2 locations

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