Mercurial > packages > magicforger
diff src/ConfigHelper.php @ 14:c969ed13c570 main-dev
Changes for various files
| author | luka |
|---|---|
| date | Mon, 23 Sep 2024 20:35:14 -0400 |
| parents | 3426c7e91c24 |
| children | 19b7a8de0019 |
line wrap: on
line diff
--- a/src/ConfigHelper.php Wed Apr 24 20:11:52 2024 -0400 +++ b/src/ConfigHelper.php Mon Sep 23 20:35:14 2024 -0400 @@ -17,7 +17,6 @@ /** * Set up configuration path. - * @return void */ public static function setup_config_path(string $base_path): void { @@ -26,8 +25,6 @@ /** * Get configuration path. - * - * @return string */ protected static function get_config_path(): string { @@ -36,7 +33,6 @@ /** * Write configuration into a file. - * @return void */ public static function write_config(): void { @@ -51,7 +47,6 @@ /** * Read configuration from a file. - * @return void */ public static function read_config(): void { @@ -61,7 +56,6 @@ /** * Print configuration. - * @return void */ public static function print_config(): void { @@ -76,6 +70,7 @@ * @see https://www.php.net/manual/en/function.var-export.php * * @param bool $return + * * @return string|string[]|null */ public static function varexport(mixed $expression, $return = false): string|array|null @@ -93,12 +88,12 @@ } else { echo $export; } - return null; + + return null; } /** * Format the given file. - * @return void */ protected static function format_file(string $path): void { @@ -108,7 +103,7 @@ /** * Set up tables. */ - public static function set_up_tables(): Collection + public static function set_up_tables(): Collection { $schema = \DB::connection()->getDoctrineSchemaManager(); $tables = collect($schema->listTableNames())->all(); @@ -181,7 +176,6 @@ * * @param array $priority * @param array $merged - * @return void */ private static function merge_array_priority(&$priority, $merged): void {
