Skip to content

Commit 1462245

Browse files
author
Tom Schlick
committed
docblocks
1 parent bf68a70 commit 1462245

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

src/Commands/MigrateDumpCommand.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ public function handle()
8484
$this->info('Finished Data Dump');
8585
}
8686

87+
/**
88+
* @param array $output
89+
*
90+
* @return array
91+
*/
8792
public static function reorderMigrationRows(array $output) : array
8893
{
8994
if (config('migration-snapshot.reorder')) {
@@ -423,6 +428,12 @@ private static function sqliteSchemaDump(array $db_config, string $schema_sql_pa
423428
return $exit_code;
424429
}
425430

431+
/**
432+
* @param array $db_config
433+
* @param string $schema_sql_path
434+
*
435+
* @return int
436+
*/
426437
private static function sqliteDataDump(array $db_config, string $schema_sql_path) : int
427438
{
428439
// CONSIDER: Accepting command name as option or from config.

src/Commands/MigrateLoadCommand.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ public function handle()
8585
}
8686
}
8787

88+
/**
89+
* @param string $path
90+
* @param array $db_config
91+
* @param int|null $verbosity
92+
*
93+
* @return int
94+
*/
8895
private static function mysqlLoad(string $path, array $db_config, int $verbosity = null) : int
8996
{
9097
// CONSIDER: Supporting unix_socket.
@@ -125,6 +132,13 @@ private static function mysqlLoad(string $path, array $db_config, int $verbosity
125132
return $exit_code;
126133
}
127134

135+
/**
136+
* @param string $path
137+
* @param array $db_config
138+
* @param int|null $verbosity
139+
*
140+
* @return int
141+
*/
128142
private static function pgsqlLoad(string $path, array $db_config, int $verbosity = null) : int
129143
{
130144
// CONSIDER: Supporting unix_socket.
@@ -163,6 +177,13 @@ private static function pgsqlLoad(string $path, array $db_config, int $verbosity
163177
return $exit_code;
164178
}
165179

180+
/**
181+
* @param string $path
182+
* @param array $db_config
183+
* @param int|null $verbosity
184+
*
185+
* @return int
186+
*/
166187
private static function sqliteLoad(string $path, array $db_config, int $verbosity = null) : int
167188
{
168189
// CONSIDER: Directly sending queries via Eloquent (requires parsing SQL

0 commit comments

Comments
 (0)