Merge pull request #17802 from kamil-tekiela/indent2
Fix indentation again
This commit is contained in:
commit
fd4cedd4f9
@ -228,26 +228,26 @@ final class FieldMetadata
|
||||
{
|
||||
$this->mappedType = $this->getTypeMap()[$fieldType] ?? null;
|
||||
|
||||
$this->isMultipleKey = (bool) ($fieldFlags & MYSQLI_MULTIPLE_KEY_FLAG);
|
||||
$this->isPrimaryKey = (bool) ($fieldFlags & MYSQLI_PRI_KEY_FLAG);
|
||||
$this->isUniqueKey = (bool) ($fieldFlags & MYSQLI_UNIQUE_KEY_FLAG);
|
||||
$this->isNotNull = (bool) ($fieldFlags & MYSQLI_NOT_NULL_FLAG);
|
||||
$this->isUnsigned = (bool) ($fieldFlags & MYSQLI_UNSIGNED_FLAG);
|
||||
$this->isZerofill = (bool) ($fieldFlags & MYSQLI_ZEROFILL_FLAG);
|
||||
$this->isBlob = (bool) ($fieldFlags & MYSQLI_BLOB_FLAG);
|
||||
$this->isEnum = (bool) ($fieldFlags & MYSQLI_ENUM_FLAG);
|
||||
$this->isSet = (bool) ($fieldFlags & MYSQLI_SET_FLAG);
|
||||
$this->isMultipleKey = (bool) ($fieldFlags & MYSQLI_MULTIPLE_KEY_FLAG);
|
||||
$this->isPrimaryKey = (bool) ($fieldFlags & MYSQLI_PRI_KEY_FLAG);
|
||||
$this->isUniqueKey = (bool) ($fieldFlags & MYSQLI_UNIQUE_KEY_FLAG);
|
||||
$this->isNotNull = (bool) ($fieldFlags & MYSQLI_NOT_NULL_FLAG);
|
||||
$this->isUnsigned = (bool) ($fieldFlags & MYSQLI_UNSIGNED_FLAG);
|
||||
$this->isZerofill = (bool) ($fieldFlags & MYSQLI_ZEROFILL_FLAG);
|
||||
$this->isBlob = (bool) ($fieldFlags & MYSQLI_BLOB_FLAG);
|
||||
$this->isEnum = (bool) ($fieldFlags & MYSQLI_ENUM_FLAG);
|
||||
$this->isSet = (bool) ($fieldFlags & MYSQLI_SET_FLAG);
|
||||
|
||||
// as flags 32768 can be NUM_FLAG or GROUP_FLAG
|
||||
// reference: https://www.php.net/manual/en/mysqli-result.fetch-fields.php
|
||||
// so check field type instead of flags
|
||||
$this->isNumeric = $this->isType(self::TYPE_INT) || $this->isType(self::TYPE_REAL);
|
||||
// as flags 32768 can be NUM_FLAG or GROUP_FLAG
|
||||
// reference: https://www.php.net/manual/en/mysqli-result.fetch-fields.php
|
||||
// so check field type instead of flags
|
||||
$this->isNumeric = $this->isType(self::TYPE_INT) || $this->isType(self::TYPE_REAL);
|
||||
|
||||
/*
|
||||
MYSQLI_PART_KEY_FLAG => 'part_key',
|
||||
MYSQLI_TIMESTAMP_FLAG => 'timestamp',
|
||||
MYSQLI_AUTO_INCREMENT_FLAG => 'auto_increment',
|
||||
*/
|
||||
/*
|
||||
MYSQLI_PART_KEY_FLAG => 'part_key',
|
||||
MYSQLI_TIMESTAMP_FLAG => 'timestamp',
|
||||
MYSQLI_AUTO_INCREMENT_FLAG => 'auto_increment',
|
||||
*/
|
||||
|
||||
$this->isMappedTypeBit = $this->isType(self::TYPE_BIT);
|
||||
$this->isMappedTypeGeometry = $this->isType(self::TYPE_GEOMETRY);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user