mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/16955] Clean up code in db classes
PHPBB3-16955
This commit is contained in:
@@ -68,7 +68,7 @@ class connection implements DriverConnection
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function lastInsertId($name = null): ?string
|
||||
public function lastInsertId($name = null)
|
||||
{
|
||||
return $this->wrapped->lastInsertId($name);
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@ class table_helper
|
||||
*
|
||||
* @param array $column_data Column data.
|
||||
*
|
||||
* @return array<string, array> A pair of type and array of column options.
|
||||
* @return array{string, array} A pair of type and array of column options.
|
||||
*/
|
||||
public static function convert_column_data(array $column_data, string $dbms_layer): array
|
||||
{
|
||||
|
@@ -54,7 +54,7 @@ class type_converter
|
||||
*
|
||||
* @param string $type Legacy type name
|
||||
*
|
||||
* @return array<string, array> Pair of type name and options.
|
||||
* @return array{string, array} Pair of type name and options.
|
||||
*/
|
||||
public static function convert(string $type, string $dbms): array
|
||||
{
|
||||
@@ -73,7 +73,7 @@ class type_converter
|
||||
* @param string $type Legacy type name.
|
||||
* @param int $length Type length.
|
||||
*
|
||||
* @return array<string, array> Pair of type name and options.
|
||||
* @return array{string, array} Pair of type name and options.
|
||||
*/
|
||||
private static function mapWithLength(string $type, int $length): array
|
||||
{
|
||||
@@ -107,7 +107,7 @@ class type_converter
|
||||
*
|
||||
* @param string $type Type name.
|
||||
*
|
||||
* @return array<string, array> Pair of type name and an array of options.
|
||||
* @return array{string, array} Pair of type name and an array of options.
|
||||
*/
|
||||
private static function mapType(string $type, string $dbms): array
|
||||
{
|
||||
|
Reference in New Issue
Block a user