From 8f2ce5dab75af0630a152ecac3fb0366f289b5db Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Mon, 26 Aug 2013 02:06:41 +0400 Subject: [PATCH] Fixed typo and code style --- framework/yii/gii/Generator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/yii/gii/Generator.php b/framework/yii/gii/Generator.php index f0e06ab..68ca640 100644 --- a/framework/yii/gii/Generator.php +++ b/framework/yii/gii/Generator.php @@ -210,7 +210,7 @@ abstract class Generator extends Model */ 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() . '"...'); $hasError = false; - foreach ($files as $file) {; + foreach ($files as $file) { $relativePath = $file->getRelativePath(); if (isset($answers[$file->id]) && $file->operation !== CodeFile::OP_SKIP) { $error = $file->save();