Commit 492337de by Alexander Makarov

else if → elseif

parent 6b48c9ce
...@@ -255,7 +255,7 @@ class Generator extends \yii\gii\Generator ...@@ -255,7 +255,7 @@ class Generator extends \yii\gii\Generator
} }
return "\$form->field(\$model, '$attribute')->dropDownList(" return "\$form->field(\$model, '$attribute')->dropDownList("
. preg_replace("/\n\s*/", ' ', VarDumper::export($dropDownOptions)).", ['prompt' => ''])"; . preg_replace("/\n\s*/", ' ', VarDumper::export($dropDownOptions)).", ['prompt' => ''])";
} else if ($column->phpType !== 'string' || $column->size === null) { } elseif ($column->phpType !== 'string' || $column->size === null) {
return "\$form->field(\$model, '$attribute')->$input()"; return "\$form->field(\$model, '$attribute')->$input()";
} else { } else {
return "\$form->field(\$model, '$attribute')->$input(['maxlength' => $column->size])"; return "\$form->field(\$model, '$attribute')->$input(['maxlength' => $column->size])";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment