Skip to content

Commit

Permalink
crud,default/views/view.php, indent
Browse files Browse the repository at this point in the history
  • Loading branch information
hail committed Mar 12, 2021
1 parent e32e3a2 commit c8ebaaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gii/generators/crud/default/views/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@
<?php
if (($tableSchema = $generator->getTableSchema()) === false) {
foreach ($generator->getColumnNames() as $name) {
echo " '" . $name . "',\n";
echo " '" . $name . "',\n";
}
} else {
foreach ($generator->getTableSchema()->columns as $column) {
$format = $generator->generateColumnFormat($column);
echo " '" . $column->name . ($format === 'text' ? "" : ":" . $format) . "',\n";
echo " '" . $column->name . ($format === 'text' ? "" : ":" . $format) . "',\n";
}
}
?>
Expand Down

0 comments on commit c8ebaaa

Please sign in to comment.