Skip to content

Commit ef50e5c

Browse files
committed
chore: replace all description prop to desc
1 parent 6a4b640 commit ef50e5c

10 files changed

+11
-12
lines changed

examples/Command/CorCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class CorCommand extends Command
2222
{
2323
protected static string $name = 'cor';
2424

25-
protected static string $description = 'a coroutine test command';
25+
protected static string $desc = 'a coroutine test command';
2626

2727
protected static bool $coroutine = true;
2828

examples/Command/DemoCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ class DemoCommand extends Command
2323
{
2424
protected static string $name = 'demo';
2525

26-
protected static string $description = 'this is a demo alone command. but use Definition instead of annotations';
26+
protected static string $desc = 'this is a demo alone command. but use Definition instead of annotations';
2727

2828
/**
2929
* {@inheritDoc}
30-
* @throws LogicException
3130
*/
3231
protected function configure(): void
3332
{

examples/Command/TestCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ class TestCommand extends Command
2121
{
2222
protected static string $name = 'test';
2323

24-
protected static string $description = 'this is a test independent command';
24+
protected static string $desc = 'this is a test independent command';
2525

2626
protected function commands(): array
2727
{
2828
return [
29-
'sub' => static function ($in, $out): void {
29+
'sub' => static function ($fs, $out): void {
3030
$out->println('hello, this is an sub command of test.');
3131
},
3232
];

examples/Controller/HomeController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class HomeController extends Controller
3434
{
3535
protected static string $name = 'home';
3636

37-
protected static string $description = 'This is a demo command controller. there are some command usage examples(2)';
37+
protected static string $desc = 'This is a demo command controller. there are some command usage examples(2)';
3838

3939
public static function aliases(): array
4040
{

examples/Controller/InteractController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class InteractController extends Controller
2424
{
2525
protected static string $name = 'interact';
2626

27-
protected static string $description = 'there are some demo commands for use interactive method';
27+
protected static string $desc = 'there are some demo commands for use interactive method';
2828

2929
public static function aliases(): array
3030
{

examples/Controller/ProcessController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ProcessController extends Controller
2323
{
2424
protected static string $name = 'process';
2525

26-
protected static string $description = 'Some simple process to create and use examples';
26+
protected static string $desc = 'Some simple process to create and use examples';
2727

2828
protected static function commandAliases(): array
2929
{

examples/Controller/ShowController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ShowController extends Controller
2929
{
3030
protected static string $name = 'show';
3131

32-
protected static string $description = 'there are some demo commands for show format data';
32+
protected static string $desc = 'there are some demo commands for show format data';
3333

3434
public static function commandAliases(): array
3535
{

src/BuiltIn/DevServerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class DevServerCommand extends Command
2525
{
2626
protected static string $name = 'dev:server';
2727

28-
protected static string $description = 'Start a php built-in http server for development';
28+
protected static string $desc = 'Start a php built-in http server for development';
2929

3030
public static function aliases(): array
3131
{

src/BuiltIn/PharController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class PharController extends Controller
3636
{
3737
protected static string $name = 'phar';
3838

39-
protected static string $description = 'Pack a project directory to phar or unpack phar to directory';
39+
protected static string $desc = 'Pack a project directory to phar or unpack phar to directory';
4040

4141
/**
4242
* @var Closure|null

src/BuiltIn/SelfUpdateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class SelfUpdateCommand extends Command
3737

3838
protected static string $name = 'self-update';
3939

40-
protected static string $description = 'Update phar package to most recent stable, pre-release or development build.';
40+
protected static string $desc = 'Update phar package to most recent stable, pre-release or development build.';
4141

4242
/**
4343
* @var string

0 commit comments

Comments
 (0)