This commit is contained in:
2021-01-19 20:23:31 +08:00
parent a06182ef5b
commit e58ab63a24
+1 -4
View File
@@ -120,14 +120,11 @@ class ' . $managerName . ' extends ActiveRecord
} else { } else {
$debug = 'public'; $debug = 'public';
} }
if ($property->hasType()) { if ($property->hasType()) {
$type = $property->getType() . ' $' . $key . ' = ' . $val . ';' . "\n"; $type = ' ' . $property->getType() . ' $' . $key . ' = ' . $val . ';' . "\n";
} else { } else {
$type = ' $' . $key . ' = ' . $val . ';' . "\n"; $type = ' $' . $key . ' = ' . $val . ';' . "\n";
} }
if ($property->isStatic()) { if ($property->isStatic()) {
$html .= ' $html .= '
' . $debug . ' static' . $type; ' . $debug . ' static' . $type;