YetiForceCompany/YetiForceCRM

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%

Reference to undeclared property \App\Db\Drivers\Mysql\Schema->db
Open

        return new ColumnSchemaBuilder($type, $length, $this->db);
Severity: Minor
Found in app/Db/Drivers/Mysql/Schema.php by phan

Class extends undeclared class \yii\db\mysql\Schema (Did you mean class \App\Db\Drivers\Mysql\Schema or class \App\Db\Drivers\Pgsql\Schema)
Open

class Schema extends \yii\db\mysql\Schema
Severity: Critical
Found in app/Db/Drivers/Mysql/Schema.php by phan

Call with 3 arg(s) to \App\Db\Drivers\Mysql\ColumnSchemaBuilder::__construct() which only takes 0 arg(s) defined at /code/app/Db/Drivers/Mysql/ColumnSchemaBuilder.php:18
Open

        return new ColumnSchemaBuilder($type, $length, $this->db);
Severity: Info
Found in app/Db/Drivers/Mysql/Schema.php by phan

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

     * @since 2.0.6

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

     * @param string           $type   type of the column. See [[ColumnSchemaBuilder::$type]].

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

    use \App\Db\Drivers\SchemaTrait;

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

     * Create a column schema builder instance giving the type and value precision.

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 new ColumnSchemaBuilder($type, $length, $this->db);

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

     * @param array|int|string $length length or precision of the column. See [[ColumnSchemaBuilder::$length]].

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

     * This method may be overridden by child classes to create a DBMS-specific column schema builder.

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

    public function createColumnSchemaBuilder($type, $length = null)

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 ColumnSchemaBuilder column schema builder instance

There are no issues that match your filters.

Category
Status