app/Db/Drivers/Mysql/ColumnSchemaBuilder.php
Reference to undeclared constant \App\Db\Drivers\Mysql\ColumnSchemaBuilder::CATEGORY_NUMERIC
Open
Open
case self::CATEGORY_NUMERIC:
- Exclude checks
Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::getTypeCategory
Open
Open
switch ($this->getTypeCategory()) {
- Exclude checks
Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildNotNullString
Open
Open
'{notnull}' => $this->buildNotNullString(),
- Exclude checks
Reference to undeclared property \App\Db\Drivers\Mysql\ColumnSchemaBuilder->type
Open
Open
'{type}' => $this->type,
- Exclude checks
Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildLengthString
Open
Open
'{length}' => $this->buildLengthString(),
- Exclude checks
Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildFirstString
Open
Open
'{pos}' => $this->isFirst ? $this->buildFirstString() : $this->buildAfterString(),
- Exclude checks
Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildDefaultString
Open
Open
'{default}' => $this->buildDefaultString(),
- Exclude checks
Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildCheckString
Open
Open
'{check}' => $this->buildCheckString(),
- Exclude checks
Reference to undeclared constant \App\Db\Drivers\Mysql\ColumnSchemaBuilder::CATEGORY_PK
Open
Open
case self::CATEGORY_PK:
- Exclude checks
Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildUniqueString
Open
Open
'{unique}' => $this->buildUniqueString(),
- Exclude checks
Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildCommentString
(Did you mean expr->buildCompleteString()) Open
Open
'{comment}' => $this->buildCommentString(),
- Exclude checks
Reference to undeclared property \App\Db\Drivers\Mysql\ColumnSchemaBuilder->isFirst
Open
Open
'{pos}' => $this->isFirst ? $this->buildFirstString() : $this->buildAfterString(),
- Exclude checks
Class extends undeclared class \yii\db\mysql\ColumnSchemaBuilder
(Did you mean class \App\Db\Drivers\Mysql\ColumnSchemaBuilder or class \App\Db\Drivers\Pgsql\ColumnSchemaBuilder) Open
Open
class ColumnSchemaBuilder extends \yii\db\mysql\ColumnSchemaBuilder
- Exclude checks
Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildUnsignedString
Open
Open
'{unsigned}' => $this->buildUnsignedString(),
- Exclude checks
Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildAfterString
Open
Open
'{pos}' => $this->isFirst ? $this->buildFirstString() : $this->buildAfterString(),
- Exclude checks
Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildAppendString
Open
Open
'{append}' => $this->buildAppendString(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'{unsigned}' => $this->buildUnsignedString(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'{pos}' => $this->isFirst ? $this->buildFirstString() : $this->buildAfterString(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @return string
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'{default}' => $this->buildDefaultString(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'{check}' => $this->buildCheckString(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
case self::CATEGORY_PK:
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
case self::CATEGORY_NUMERIC:
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Returns the complete column definition from input format.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @return string a string containing the complete column definition.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
switch ($this->getTypeCategory()) {
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
break;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
default:
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @param string $format the format of the definition.
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function __toString()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$format = '{type}{length}{notnull}{default}{unique}{comment}{append}{pos}{check}';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $this->buildCompleteString($format);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'{unique}' => $this->buildUniqueString(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
protected function buildAutoIncrementString()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'{type}' => $this->type,
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'{append}' => $this->buildAppendString(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Builds the full string for the column's schema.
- Exclude checks
Line exceeds 120 characters; contains 123 characters Open
Open
$format = '{type}{length}{unsigned}{notnull}{default}{unique}{autoIncrement}{comment}{append}{pos}{check}';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$format = '{type}{length}{unsigned}{notnull}{default}{unique}{autoIncrement}{comment}{append}{pos}{check}';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
protected function buildCompleteString($format)
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'{notnull}' => $this->buildNotNullString(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @return string
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return $this->autoIncrement ? ' AUTO_INCREMENT' : '';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'{length}' => $this->buildLengthString(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @since 2.0.8
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$placeholderValues = [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'{autoIncrement}' => $this->buildAutoIncrementString(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return strtr($format, $placeholderValues);
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
*/
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
use \App\Db\Drivers\ColumnSchemaBuilderTrait;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$format = '{type}{length}{comment}{check}{append}{pos}';
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
break;
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'{comment}' => $this->buildCommentString(),
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* Builds the autoincrement string for column.
- Exclude checks