Permalink
Browse files

don't dump indexes all on the same line

  • Loading branch information...
AD7six committed May 9, 2012
1 parent 3a5e00f commit 8060dd57d3283e815ee78cfea5fd3c31215f375d
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Model/CakeSchema.php
@@ -414,12 +414,12 @@ public function generateTable($table, $fields) {
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();

0 comments on commit 8060dd5

Please sign in to comment.