diff --git a/lib/Cake/Model/CakeSchema.php b/lib/Cake/Model/CakeSchema.php index 74b426e40..35698a347 100644 --- a/lib/Cake/Model/CakeSchema.php +++ b/lib/Cake/Model/CakeSchema.php @@ -414,12 +414,12 @@ class CakeSchema extends Object { unset($value['type']); $col .= join(', ', $this->_values($value)); } elseif ($field == 'indexes') { - $col = "\t\t'indexes' => array("; + $col = "\t\t'indexes' => array(\n\t\t\t"; $props = array(); foreach ((array)$value as $key => $index) { $props[] = "'{$key}' => array(" . join(', ', $this->_values($index)) . ")"; } - $col .= join(', ', $props); + $col .= join(",\n\t\t\t", $props) . "\n\t\t"; } elseif ($field == 'tableParameters') { $col = "\t\t'tableParameters' => array("; $props = array();