改名
This commit is contained in:
+2
-2
@@ -13,7 +13,7 @@ use Database\Connection;
|
||||
use Database\Db;
|
||||
use Exception;
|
||||
use JetBrains\PhpStorm\ArrayShape;
|
||||
use JetBrains\PhpStorm\Pure;
|
||||
|
||||
use Snowflake\Abstracts\Input;
|
||||
use Snowflake\Exception\ComponentException;
|
||||
use Snowflake\Exception\ConfigException;
|
||||
@@ -304,7 +304,7 @@ class Gii
|
||||
* @return string
|
||||
* 暂时不知道干嘛用的
|
||||
*/
|
||||
#[Pure] private function createSetFunc($field, $comment): string
|
||||
private function createSetFunc($field, $comment): string
|
||||
{
|
||||
return '
|
||||
' . str_pad('\'' . $field . '\'', 20, ' ', STR_PAD_RIGHT) . '=> \'' . (empty($comment) ? ucfirst($field) : $comment) . '\',';
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@ namespace Gii;
|
||||
|
||||
use Database\Connection;
|
||||
use JetBrains\PhpStorm\ArrayShape;
|
||||
use JetBrains\PhpStorm\Pure;
|
||||
|
||||
use ReflectionClass;
|
||||
use Snowflake\Abstracts\Input;
|
||||
|
||||
@@ -219,7 +219,7 @@ abstract class GiiBase
|
||||
* @param $val
|
||||
* @return string
|
||||
*/
|
||||
#[Pure] protected function checkIsRequired($val): string
|
||||
protected function checkIsRequired($val): string
|
||||
{
|
||||
return strtolower($val['Null']) == 'no' && $val['Default'] === NULL ? 'true' : 'false';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user