Pink-Crab/WPDB_Migrations

View on GitHub

Showing 3 of 3 total issues

Method column_type_format has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function column_type_format( string $type ): string {
        switch ( \strtoupper( $type ) ) {
            case 'CHAR':
            case 'VARCHAR':
            case 'BINARY':
Severity: Minor
Found in src/Migration_Seeder.php - About 1 hr to fix

    Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        public function __construct( Schema $schema, string $wpdb_error = '', $message = '', $code = 0, Throwable $previous = null ) {
    Severity: Minor
    Found in src/Migration_Exception.php - About 35 mins to fix

      Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

              string $table_name,
              string $schema_hash,
              bool $seeded,
              DateTimeImmutable $created_on,
              ?DateTimeImmutable $updated_on = null
      Severity: Minor
      Found in src/Log/Migration_Log.php - About 35 mins to fix
        Severity
        Category
        Status
        Source
        Language