Skip to content

Commit 8a3435d

Browse files
authored
Format code by the latest cs-fixer. (#6617)
1 parent a5d36dc commit 8a3435d

31 files changed

Lines changed: 45 additions & 7 deletions

src/Annotation/AsCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Command\Annotation;
1314

1415
use Attribute;

src/Annotation/Command.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Command\Annotation;
1314

1415
use Attribute;

src/AsCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Command;
1314

1415
use Hyperf\Command\Concerns\InteractsWithIO;

src/ClosureCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Command;
1314

1415
use Closure;
@@ -49,7 +50,7 @@ public function describe(string $description): self
4950
}
5051

5152
/**
52-
* @param callable(Crontab $crontab):Crontab|null $callback
53+
* @param null|callable(Crontab $crontab):Crontab $callback
5354
*/
5455
public function cron(string $rule, array $arguments = [], ?callable $callback = null): self
5556
{

src/Command.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Command;
1314

1415
use Hyperf\Coroutine\Coroutine;

src/Concerns/Confirmable.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Command\Concerns;
1314

1415
use Closure;
16+
use Composer\InstalledVersions;
1517

1618
use function Hyperf\Support\value;
1719

@@ -50,6 +52,6 @@ public function confirmToProceed(string $warning = 'Application In Production!',
5052
protected function isShouldConfirm(): bool
5153
{
5254
return is_callable(['Composer\InstalledVersions', 'getRootPackage'])
53-
&& (\Composer\InstalledVersions::getRootPackage()['dev'] ?? false) === false;
55+
&& (InstalledVersions::getRootPackage()['dev'] ?? false) === false;
5456
}
5557
}

src/Concerns/DisableEventDispatcher.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Command\Concerns;
1314

1415
use Hyperf\Context\ApplicationContext;

src/Concerns/HasParameters.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Command\Concerns;
1314

1415
use Symfony\Component\Console\Input\InputArgument;

src/Concerns/InteractsWithIO.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Command\Concerns;
1314

1415
use Closure;
1516
use Hyperf\Contract\Arrayable;
1617
use Hyperf\Stringable\Str;
1718
use Symfony\Component\Console\Formatter\OutputFormatterStyle;
1819
use Symfony\Component\Console\Helper\Table;
20+
use Symfony\Component\Console\Helper\TableStyle;
1921
use Symfony\Component\Console\Input\InputInterface;
2022
use Symfony\Component\Console\Output\OutputInterface;
2123
use Symfony\Component\Console\Question\ChoiceQuestion;
@@ -214,7 +216,7 @@ public function choice($question, array $choices, $default = null, $attempts = n
214216
*
215217
* @param array $headers
216218
* @param array|Arrayable $rows
217-
* @param string|\Symfony\Component\Console\Helper\TableStyle $tableStyle
219+
* @param string|TableStyle $tableStyle
218220
*/
219221
public function table($headers, $rows, $tableStyle = 'default', array $columnStyles = [])
220222
{

src/Concerns/NullDisableEventDispatcher.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @contact group@hyperf.io
1010
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
1111
*/
12+
1213
namespace Hyperf\Command\Concerns;
1314

1415
use Symfony\Component\Console\Input\InputInterface;

0 commit comments

Comments
 (0)