YetiForceCompany/YetiForceCRM

View on GitHub
app/Db/Drivers/Mysql/ColumnSchemaBuilder.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Reference to undeclared constant \App\Db\Drivers\Mysql\ColumnSchemaBuilder::CATEGORY_NUMERIC
Open

            case self::CATEGORY_NUMERIC:

Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::getTypeCategory
Open

        switch ($this->getTypeCategory()) {

Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildNotNullString
Open

            '{notnull}' => $this->buildNotNullString(),

Reference to undeclared property \App\Db\Drivers\Mysql\ColumnSchemaBuilder->type
Open

            '{type}' => $this->type,

Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildLengthString
Open

            '{length}' => $this->buildLengthString(),

Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildFirstString
Open

            '{pos}' => $this->isFirst ? $this->buildFirstString() : $this->buildAfterString(),

Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildDefaultString
Open

            '{default}' => $this->buildDefaultString(),

Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildCheckString
Open

            '{check}' => $this->buildCheckString(),

Reference to undeclared constant \App\Db\Drivers\Mysql\ColumnSchemaBuilder::CATEGORY_PK
Open

            case self::CATEGORY_PK:

Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildUniqueString
Open

            '{unique}' => $this->buildUniqueString(),

Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildCommentString (Did you mean expr->buildCompleteString())
Open

            '{comment}' => $this->buildCommentString(),

Reference to undeclared property \App\Db\Drivers\Mysql\ColumnSchemaBuilder->isFirst
Open

            '{pos}' => $this->isFirst ? $this->buildFirstString() : $this->buildAfterString(),

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

class ColumnSchemaBuilder extends \yii\db\mysql\ColumnSchemaBuilder

Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildUnsignedString
Open

            '{unsigned}' => $this->buildUnsignedString(),

Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildAfterString
Open

            '{pos}' => $this->isFirst ? $this->buildFirstString() : $this->buildAfterString(),

Call to undeclared method \App\Db\Drivers\Mysql\ColumnSchemaBuilder::buildAppendString
Open

            '{append}' => $this->buildAppendString(),

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

            '{unsigned}' => $this->buildUnsignedString(),

Spaces must be used to indent lines; tabs are not allowed
Open

            '{pos}' => $this->isFirst ? $this->buildFirstString() : $this->buildAfterString(),

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return string

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

            '{default}' => $this->buildDefaultString(),

Spaces must be used to indent lines; tabs are not allowed
Open

            '{check}' => $this->buildCheckString(),

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

            case self::CATEGORY_PK:

Spaces must be used to indent lines; tabs are not allowed
Open

            case self::CATEGORY_NUMERIC:

Spaces must be used to indent lines; tabs are not allowed
Open

     * Returns the complete column definition from input format.

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return string a string containing the complete column definition.

Spaces must be used to indent lines; tabs are not allowed
Open

        switch ($this->getTypeCategory()) {

Spaces must be used to indent lines; tabs are not allowed
Open

                break;

Spaces must be used to indent lines; tabs are not allowed
Open

            default:

Spaces must be used to indent lines; tabs are not allowed
Open

     * @param string $format the format of the definition.

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

    public function __toString()

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

                $format = '{type}{length}{notnull}{default}{unique}{comment}{append}{pos}{check}';

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

        return $this->buildCompleteString($format);

Spaces must be used to indent lines; tabs are not allowed
Open

            '{unique}' => $this->buildUniqueString(),

Spaces must be used to indent lines; tabs are not allowed
Open

    protected function buildAutoIncrementString()

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

        }

Spaces must be used to indent lines; tabs are not allowed
Open

            '{type}' => $this->type,

Spaces must be used to indent lines; tabs are not allowed
Open

            '{append}' => $this->buildAppendString(),

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

     * Builds the full string for the column's schema.

Line exceeds 120 characters; contains 123 characters
Open

                $format = '{type}{length}{unsigned}{notnull}{default}{unique}{autoIncrement}{comment}{append}{pos}{check}';

Spaces must be used to indent lines; tabs are not allowed
Open

                $format = '{type}{length}{unsigned}{notnull}{default}{unique}{autoIncrement}{comment}{append}{pos}{check}';

Spaces must be used to indent lines; tabs are not allowed
Open

     *

Spaces must be used to indent lines; tabs are not allowed
Open

    protected function buildCompleteString($format)

Spaces must be used to indent lines; tabs are not allowed
Open

        ];

Spaces must be used to indent lines; tabs are not allowed
Open

            '{notnull}' => $this->buildNotNullString(),

Spaces must be used to indent lines; tabs are not allowed
Open

     * @return string

Spaces must be used to indent lines; tabs are not allowed
Open

        return $this->autoIncrement ? ' AUTO_INCREMENT' : '';

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

            '{length}' => $this->buildLengthString(),

Spaces must be used to indent lines; tabs are not allowed
Open

     * @since 2.0.8

Spaces must be used to indent lines; tabs are not allowed
Open

        $placeholderValues = [

Spaces must be used to indent lines; tabs are not allowed
Open

            '{autoIncrement}' => $this->buildAutoIncrementString(),

Spaces must be used to indent lines; tabs are not allowed
Open

        return strtr($format, $placeholderValues);

Spaces must be used to indent lines; tabs are not allowed
Open

     */

Spaces must be used to indent lines; tabs are not allowed
Open

    use \App\Db\Drivers\ColumnSchemaBuilderTrait;

Spaces must be used to indent lines; tabs are not allowed
Open

    /**

Spaces must be used to indent lines; tabs are not allowed
Open

                $format = '{type}{length}{comment}{check}{append}{pos}';

Spaces must be used to indent lines; tabs are not allowed
Open

                break;

Spaces must be used to indent lines; tabs are not allowed
Open

    {

Spaces must be used to indent lines; tabs are not allowed
Open

            '{comment}' => $this->buildCommentString(),

Spaces must be used to indent lines; tabs are not allowed
Open

    }

Spaces must be used to indent lines; tabs are not allowed
Open

     * Builds the autoincrement string for column.

There are no issues that match your filters.

Category
Status