Code Duplication    Length = 5-5 lines in 2 locations

lib/Cake/Model/Model.php 2 locations

@@ 3085-3089 (lines=5) @@
3082
					$list = array("{n}.{$this->alias}.{$this->primaryKey}", '{n}.' . $query['fields'][0], null);
3083
					$query['fields'] = array("{$this->alias}.{$this->primaryKey}", $query['fields'][0]);
3084
				} elseif (count($query['fields']) === 3) {
3085
					for ($i = 0; $i < 3; $i++) {
3086
						if (strpos($query['fields'][$i], '.') === false) {
3087
							$query['fields'][$i] = $this->alias . '.' . $query['fields'][$i];
3088
						}
3089
					}
3090
3091
					$list = array('{n}.' . $query['fields'][0], '{n}.' . $query['fields'][1], '{n}.' . $query['fields'][2]);
3092
				} else {
@@ 3093-3097 (lines=5) @@
3090
3091
					$list = array('{n}.' . $query['fields'][0], '{n}.' . $query['fields'][1], '{n}.' . $query['fields'][2]);
3092
				} else {
3093
					for ($i = 0; $i < 2; $i++) {
3094
						if (strpos($query['fields'][$i], '.') === false) {
3095
							$query['fields'][$i] = $this->alias . '.' . $query['fields'][$i];
3096
						}
3097
					}
3098
3099
					$list = array('{n}.' . $query['fields'][0], '{n}.' . $query['fields'][1], null);
3100
				}