Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
dergel committed Feb 27, 2023
1 parent 2f9ce8e commit 71d8ee5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions plugins/manager/lib/yform/manager/table.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public static function getAll()
return self::$tables;
}

public static function table()
public static function table(): string
{
return rex::getTablePrefix() . 'yform_table';
}
Expand Down Expand Up @@ -533,7 +533,6 @@ public static function deleteCache(): void
self::$cache = null;
self::$tables = [];
self::$loadedAllTables = false;
dump('table cache deleted');
}

private static function getCache(): mixed
Expand Down
6 changes: 3 additions & 3 deletions plugins/manager/lib/yform/manager/table/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public static function exportTablesets(array $table_names)
/**
* @throws rex_sql_exception
*/
public static function removeTable(string $table_name)
public static function removeTable(string $table_name): void
{
$table = rex_yform_manager_table::get($table_name);

Expand Down Expand Up @@ -226,7 +226,7 @@ public static function setTableField(string $table_name, array $table_field)
/**
* @throws rex_sql_exception
*/
public static function removeTablefield(string $table_name, string $field_name)
public static function removeTablefield(string $table_name, string $field_name): void
{
$f = rex_sql::factory();
$f->setDebug(self::$debug);
Expand All @@ -238,7 +238,7 @@ public static function removeTablefield(string $table_name, string $field_name)
/**
* @throws rex_sql_exception
*/
public static function migrateTable(string $table_name, bool $schema_overwrite = false)
public static function migrateTable(string $table_name, bool $schema_overwrite = false): void
{
$columns = rex_sql::showColumns($table_name);

Expand Down

0 comments on commit 71d8ee5

Please sign in to comment.