Code Duplication    Length = 3-5 lines in 2 locations

lib/Cake/Model/Datasource/DboSource.php 2 locations

@@ 823-827 (lines=5) @@
820
				$this->startQuote . implode($this->endQuote . '.' . $this->startQuote, $items) . $this->endQuote
821
			);
822
		}
823
		if (preg_match('/^[\w-]+\.\*$/', $data)) { // string.*
824
			return $this->cacheMethod(__FUNCTION__, $cacheKey,
825
				$this->startQuote . str_replace('.*', $this->endQuote . '.*', $data)
826
			);
827
		}
828
		if (preg_match('/^([\w-]+)\((.*)\)$/', $data, $matches)) { // Functions
829
			return $this->cacheMethod(__FUNCTION__, $cacheKey,
830
				$matches[1] . '(' . $this->name($matches[2]) . ')'
@@ 843-845 (lines=3) @@
840
				)
841
			);
842
		}
843
		if (preg_match('/^[\w-_\s]*[\w-_]+/', $data)) {
844
			return $this->cacheMethod(__FUNCTION__, $cacheKey, $this->startQuote . $data . $this->endQuote);
845
		}
846
		return $this->cacheMethod(__FUNCTION__, $cacheKey, $data);
847
	}
848