Improve variable initialization consistency in convertDockerRunToCompose() function to match established patterns used for --gpus and --hostname. Changes: - Add explicit $value = null initialization in --entrypoint block - Simplify conditional check from isset($value) to $value check - Maintain semantic equivalence with zero behavior changes This refactoring eliminates potential undefined variable warnings and improves code maintainability by following the defensive pattern used elsewhere in the file. Also fixes namespace for RestoreDatabase command from App\Console\Commands to App\Console\Commands\Cloud to match file location and prevent class redeclaration errors. Tests: All 20 tests in DockerCustomCommandsTest pass (25 assertions) |
||
|---|---|---|
| .. | ||
| cache | ||
| helpers | ||
| app.php | ||
| getHelperVersion.php | ||
| getRealtimeVersion.php | ||
| getVersion.php | ||
| includeHelpers.php | ||