From fe9c6727ad0a914aaac86816f086078196d726b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 20 Apr 2023 14:51:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GiiModel.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/GiiModel.php b/GiiModel.php index 10ba055..56b1223 100644 --- a/GiiModel.php +++ b/GiiModel.php @@ -289,14 +289,8 @@ class ' . $managerName . ' extends Model } else { $key = '\'maxLength\' => ' . $key; } - if (count($_val) == 1) { - $_tmp = ' - [\'' . $_val[0][3] . '\', ' . ($_val[0][1] == 'enum' ? '\'enum\' => [' . $key .']' : $key) . ']'; - } else { - $_tmp = ' + $string[] = ' [[\'' . implode('\', \'', array_column($_val, 3)) . '\'], ' . ($_val[0][1] == 'enum' ? '\'enum\' => [' . $key .']' : $key) . ']'; - } - $string[] = $_tmp; } return implode(',', $string); }