diff -u b/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php b/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php --- b/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php +++ b/core/lib/Drupal/Core/Database/Driver/mysql/Schema.php @@ -378,7 +378,8 @@ /** * @return string|null - * The SQL definition of the foreign key or NULL if the definition is invalid. + * The SQL definition of the foreign key or NULL if the + * definition is invalid. */ protected function createForeignKeySql($key_name, $fields) { $operations = ['no action', 'restrict', 'cascade', 'set null', 'set default']; diff -u b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php --- b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php +++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Schema.php @@ -455,7 +455,8 @@ /** * @return string|null - * The SQL definition of the foreign key or NULL if the definition is invalid. + * The SQL definition of the foreign key or NULL if the + * definition is invalid. */ protected function createForeignKeySql($name, $key_name, $fields) { $operations = ['no action', 'restrict', 'cascade', 'set null', 'set default']; diff -u b/core/tests/Drupal/KernelTests/KernelTestBase.php b/core/tests/Drupal/KernelTests/KernelTestBase.php --- b/core/tests/Drupal/KernelTests/KernelTestBase.php +++ b/core/tests/Drupal/KernelTests/KernelTestBase.php @@ -693,8 +693,9 @@ $tables = Database::getConnection()->schema()->findTables('%'); // Use transactional DDL if available. $txn = Database::getConnection()->startTransaction(); - // MySQL does not have a transactional DDL so we must disable foreign keys to - // delete tables that have fk relationships between them. + // MySQL does not have a transactional DDL so we must + // disable foreign keys to delete tables that have + // fk relationships between them. $is_mysql = Database::getConnection()->databaseType() === 'mysql'; if ($is_mysql) { Database::getConnection()->query('SET foreign_key_checks = 0');