Skip to content

Commit 589ff43

Browse files
committed
Cleanup console command return types
1 parent f651097 commit 589ff43

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

modules/system/console/PluginDisable.php

-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public function handle()
4747
$plugin->is_disabled = true;
4848
$plugin->save();
4949

50-
5150
$this->output->writeln(sprintf('<info>%s:</info> disabled.', $pluginName));
5251
}
5352

modules/system/console/WinterManifest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct()
4848
/**
4949
* Execute the console command.
5050
*
51-
* @return mixed
51+
* @return void
5252
*/
5353
public function handle()
5454
{

modules/system/console/WinterPasswd.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function __construct()
4444

4545
/**
4646
* Execute the console command.
47+
* @return int
4748
*/
4849
public function handle()
4950
{
@@ -57,7 +58,7 @@ public function handle()
5758
->firstOrFail();
5859
} catch (ModelNotFoundException $e) {
5960
$this->error('The specified user does not exist.');
60-
exit(1);
61+
return 1;
6162
}
6263

6364
$password = $this->argument('password')
@@ -77,7 +78,7 @@ public function handle()
7778
if ($this->generatedPassword) {
7879
$this->output->writeLn('Password set to <info>' . $password . '</info>.');
7980
}
80-
exit(0);
81+
return 0;
8182
}
8283

8384
/**

modules/system/console/WinterVersion.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct()
4242
/**
4343
* Execute the console command.
4444
*
45-
* @return mixed
45+
* @return void
4646
*/
4747
public function handle()
4848
{

0 commit comments

Comments
 (0)