mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 13:58:24 +08:00
Fixed typo and code style
This commit is contained in:
@@ -210,7 +210,7 @@ abstract class Generator extends Model
|
|||||||
*/
|
*/
|
||||||
public function getStickyDataFile()
|
public function getStickyDataFile()
|
||||||
{
|
{
|
||||||
return Yii::$app->getRuntimePath() . '/gii-' . Yii::getVersion() . '/' . str_replace('\\', '-',get_class($this)) . '.php';
|
return Yii::$app->getRuntimePath() . '/gii-' . Yii::getVersion() . '/' . str_replace('\\', '-', get_class($this)) . '.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -225,7 +225,7 @@ abstract class Generator extends Model
|
|||||||
{
|
{
|
||||||
$lines = array('Generating code using template "' . $this->getTemplatePath() . '"...');
|
$lines = array('Generating code using template "' . $this->getTemplatePath() . '"...');
|
||||||
$hasError = false;
|
$hasError = false;
|
||||||
foreach ($files as $file) {;
|
foreach ($files as $file) {
|
||||||
$relativePath = $file->getRelativePath();
|
$relativePath = $file->getRelativePath();
|
||||||
if (isset($answers[$file->id]) && $file->operation !== CodeFile::OP_SKIP) {
|
if (isset($answers[$file->id]) && $file->operation !== CodeFile::OP_SKIP) {
|
||||||
$error = $file->save();
|
$error = $file->save();
|
||||||
|
|||||||
Reference in New Issue
Block a user