Skip to content

Commit e6dd58e

Browse files
committed
Format code.
1 parent 8e0ebf4 commit e6dd58e

2 files changed

Lines changed: 17 additions & 8 deletions

File tree

src/Command.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,11 @@ public function call(string $command, array $arguments = []): int
264264
);
265265
}
266266

267+
/**
268+
* Handle the current command.
269+
*/
270+
abstract public function handle();
271+
267272
/**
268273
* Set the verbosity level.
269274
* @param mixed $level
@@ -346,9 +351,4 @@ protected function execute(InputInterface $input, OutputInterface $output)
346351
{
347352
call([$this, 'handle']);
348353
}
349-
350-
/**
351-
* Handle the current command.
352-
*/
353-
abstract public function handle();
354354
}

src/ConfirmableTrait.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
<?php
22

3+
declare(strict_types=1);
4+
/**
5+
* This file is part of Hyperf.
6+
*
7+
* @link https://hyperf.io
8+
* @document https://doc.hyperf.io
9+
* @contact group@hyperf.io
10+
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
11+
*/
12+
313
namespace Hyperf\Command;
414

515
use Closure;
@@ -11,8 +21,8 @@ trait ConfirmableTrait
1121
*
1222
* This method only asks for confirmation in production.
1323
*
14-
* @param string $warning
15-
* @param \Closure|bool|null $callback
24+
* @param string $warning
25+
* @param null|bool|\Closure $callback
1626
* @return bool
1727
*/
1828
public function confirmToProceed($warning = 'Application In Production!', $callback = false)
@@ -37,5 +47,4 @@ public function confirmToProceed($warning = 'Application In Production!', $callb
3747

3848
return true;
3949
}
40-
4150
}

0 commit comments

Comments
 (0)