From 59ca29232abcbe8dc2baefda3e84203c204ea083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Bartus?= Date: Sun, 5 Dec 2021 21:35:34 +0100 Subject: [PATCH] [ticket/16741] Fix coding style issues PHPBB3-16741 --- phpBB/phpbb/db/doctrine/oracle_platform.php | 4 ++-- phpBB/phpbb/db/doctrine/sqlsrv_platform.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/phpBB/phpbb/db/doctrine/oracle_platform.php b/phpBB/phpbb/db/doctrine/oracle_platform.php index 7d9e4a7c28..7c011e6e77 100644 --- a/phpBB/phpbb/db/doctrine/oracle_platform.php +++ b/phpBB/phpbb/db/doctrine/oracle_platform.php @@ -154,7 +154,7 @@ class oracle_platform extends OraclePlatform */ private function get_doctrine_autoincrement_identifier_name(Identifier $table): string { - $identifierName = $this->add_doctrine_Suffix($table->getName(), '_AI_PK'); + $identifierName = $this->add_doctrine_suffix($table->getName(), '_AI_PK'); return $table->isQuoted() ? $this->quoteSingleIdentifier($identifierName) @@ -164,7 +164,7 @@ class oracle_platform extends OraclePlatform /** * @see OraclePlatform::addSuffix() */ - private function add_doctrine_Suffix(string $identifier, string $suffix): string + private function add_doctrine_suffix(string $identifier, string $suffix): string { $maxPossibleLengthWithoutSuffix = $this->getMaxIdentifierLength() - strlen($suffix); if (strlen($identifier) > $maxPossibleLengthWithoutSuffix) diff --git a/phpBB/phpbb/db/doctrine/sqlsrv_platform.php b/phpBB/phpbb/db/doctrine/sqlsrv_platform.php index aa7c9bc241..6de896466d 100644 --- a/phpBB/phpbb/db/doctrine/sqlsrv_platform.php +++ b/phpBB/phpbb/db/doctrine/sqlsrv_platform.php @@ -18,7 +18,7 @@ use Doctrine\DBAL\Schema\Identifier; use Doctrine\DBAL\Schema\TableDiff; /** - * Oracle specific schema restrictions for BC. + * SQLServer specific schema restrictions for BC. */ class sqlsrv_platform extends SQLServer2012Platform {