Skip to content

Commit e25a391

Browse files
committed
Merge branch 'main' of https://github.com/leafsphp/queue
2 parents 3508cbe + c07b510 commit e25a391

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Queue/Commands/QueueConfigCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,13 @@ protected function handle()
2525

2626
if (file_exists($appConfigFile)) {
2727
$this->error('Queue config already exists');
28+
2829
return 1;
2930
}
3031

3132
if (!copy(__DIR__ . '/stubs/config.stub', $appConfigFile)) {
3233
$this->error('Failed to generate queue config');
34+
3335
return 1;
3436
}
3537

src/Queue/Commands/QueueInstallCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Aloe\Command;
66
use Aloe\Core;
7-
use Leaf\Queue;
87

98
class QueueInstallCommand extends Command
109
{
@@ -31,11 +30,13 @@ protected function handle()
3130

3231
if (file_exists($migrationFile)) {
3332
$this->error('Queue migration already exists');
33+
3434
return 1;
3535
}
3636

3737
if (!copy(__DIR__ . '/stubs/migration.stub', $migrationFile)) {
3838
$this->error('Failed to generate queue migration');
39+
3940
return 1;
4041
}
4142

@@ -44,10 +45,12 @@ protected function handle()
4445

4546
if (!\Aloe\Core::run('php leaf db:migrate -f jobs', $this->output)) {
4647
$this->error('Failed to run queue migration');
48+
4749
return 1;
4850
}
4951

5052
$this->info('Queue migration ran successfully');
53+
5154
return 0;
5255
}
5356
}

0 commit comments

Comments
 (0)