Code Duplication    Length = 5-5 lines in 2 locations

lib/Cake/Model/Datasource/Database/Postgres.php 1 location

@@ 627-631 (lines=5) @@
624
					}
625
					$out .= 'INDEX ';
626
				}
627
				if (is_array($value['column'])) {
628
					$out .= $name . ' ON ' . $table . ' (' . implode(', ', array_map(array(&$this, 'name'), $value['column'])) . ')';
629
				} else {
630
					$out .= $name . ' ON ' . $table . ' (' . $this->name($value['column']) . ')';
631
				}
632
				$alter[] = $out;
633
			}
634
		}

lib/Cake/Model/Datasource/DboSource.php 1 location

@@ 3171-3175 (lines=5) @@
3168
				}
3169
				$name = $this->startQuote . $name . $this->endQuote;
3170
			}
3171
			if (is_array($value['column'])) {
3172
				$out .= 'KEY ' . $name . ' (' . implode(', ', array_map(array(&$this, 'name'), $value['column'])) . ')';
3173
			} else {
3174
				$out .= 'KEY ' . $name . ' (' . $this->name($value['column']) . ')';
3175
			}
3176
			$join[] = $out;
3177
		}
3178
		return $join;