src/Table.php
public function validationDefault(Validator $validator) : Validator
    {
        // configurable in config/csv_migrations.php
        if (! Configure::read('CsvMigrations.tableValidation')) {
            return $validator;
        }

        return $this->validationEnabled($validator);
    }
public function validationDefault(Validator $validator) : Validator
    {
        // configurable in config/csv_migrations.php
        if (! Configure::read('CsvMigrations.tableValidation')) {
            return $validator;
        }

        return $this->validationEnabled($validator);
    }
public function validationDefault ( Validator $ validator ) : Validator { // configurable in config/csv_migrations.php if ( ! Configure :: read ( 'CsvMigrations.tableValidation' ) ) { return $ validator ; } return $ this -> validationEnabled ( $ validator ) ; }
Set Table validation rules if the validation is globally enabled.

@param \Cake\Validation\Validator $validator Validator instance
@return \Cake\Validation\Validator
Set Table validation rules if the validation is globally enabled .