![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mautic.corals.io/vendor/doctrine/orm/src/Internal/ |
<?php declare(strict_types=1); namespace Doctrine\ORM\Internal; use Doctrine\DBAL\Platforms\AbstractPlatform; use Doctrine\DBAL\Platforms\DB2Platform; use Doctrine\DBAL\Platforms\OraclePlatform; use Doctrine\DBAL\Platforms\PostgreSQLPlatform; use function get_class; use function method_exists; use function strpos; use function strtolower; use function strtoupper; /** @internal */ trait SQLResultCasing { private function getSQLResultCasing(AbstractPlatform $platform, string $column): string { if ($platform instanceof DB2Platform || $platform instanceof OraclePlatform) { return strtoupper($column); } if ($platform instanceof PostgreSQLPlatform) { return strtolower($column); } if (strpos(get_class($platform), 'Doctrine\\DBAL\\Platforms\\') !== 0 && method_exists(AbstractPlatform::class, 'getSQLResultCasing')) { return $platform->getSQLResultCasing($column); } return $column; } }