1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-20 23:41:29 +02:00

[ticket/17530] Better classes naming

PHPBB-17530
This commit is contained in:
rxu
2025-07-19 15:17:18 +07:00
parent 980b6e6f9e
commit 86195ac0f9
16 changed files with 41 additions and 39 deletions

View File

@@ -15,8 +15,8 @@ namespace phpbb\db\doctrine;
use Doctrine\DBAL\Platforms\AbstractPlatform;
use Doctrine\DBAL\Types\Type;
use phpbb\db\middleware\postgresql\phpbb_postgresql_platform;
use phpbb\db\middleware\oracle\phpbb_oracle_platform;
use phpbb\db\middleware\oracle\platform as oracle_platform;
use phpbb\db\middleware\postgresql\platform as postgresql_platform;
/**
* Case-insensitive string type (only supported by Postgres).
@@ -30,7 +30,7 @@ class case_insensitive_string extends Type
*/
public function getSQLDeclaration(array $column, AbstractPlatform $platform): string
{
if ($platform instanceof phpbb_postgresql_platform)
if ($platform instanceof postgresql_platform)
{
return 'varchar_ci';
}
@@ -39,7 +39,7 @@ class case_insensitive_string extends Type
// we used 3 times larger capacity for strings on oracle for unicode strings
// as on other platforms. This is not the case with varchar_ci, which uses
// the same length as other platforms.
if ($platform instanceof phpbb_oracle_platform)
if ($platform instanceof oracle_platform)
{
return $platform->getAsciiStringTypeDeclarationSQL($column);
}