From e58ab63a248faaec03091c1233beadbf9ac1371c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 19 Jan 2021 20:23:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gii/GiiModel.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Gii/GiiModel.php b/Gii/GiiModel.php index a0c27da1..81b65ba3 100644 --- a/Gii/GiiModel.php +++ b/Gii/GiiModel.php @@ -120,14 +120,11 @@ class ' . $managerName . ' extends ActiveRecord } else { $debug = 'public'; } - - if ($property->hasType()) { - $type = $property->getType() . ' $' . $key . ' = ' . $val . ';' . "\n"; + $type = ' ' . $property->getType() . ' $' . $key . ' = ' . $val . ';' . "\n"; } else { $type = ' $' . $key . ' = ' . $val . ';' . "\n"; } - if ($property->isStatic()) { $html .= ' ' . $debug . ' static' . $type;