Skip to content

Commit a6056bf

Browse files
authored
Upgrade CS (#15)
* Upgrade CS rules * Apply new CS rules after upgrade
1 parent 725dd90 commit a6056bf

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"symfony/console": "^4.4 | ^5.4 | ^6.0"
3636
},
3737
"require-dev": {
38-
"facile-it/facile-coding-standard": "^0.5.2",
38+
"facile-it/facile-coding-standard": "^1.2",
3939
"jangregor/phpstan-prophecy": "^1.0.0",
4040
"phpstan/extension-installer": "^1.1",
4141
"phpstan/phpstan": "^1.10",

tests/Stub/StubTerminableCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function commandBody(InputInterface $input, OutputInterface $output):
4141
$output->writeln('No sleep');
4242
}
4343

44-
return 1; //force exit from bash
44+
return 1; // force exit from bash
4545
}
4646

4747
/**

tests/Unit/AbstractTerminableCommandTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected function tearDown(): void
2929

3030
public function testSetSleepDuration(): void
3131
{
32-
$stubCommand = new class('dummy:command') extends AbstractTerminableCommand {
32+
$stubCommand = new class ('dummy:command') extends AbstractTerminableCommand {
3333
protected function commandBody(InputInterface $input, OutputInterface $output): int
3434
{
3535
$this->setSleepDuration(100);
@@ -60,7 +60,7 @@ protected function commandBody(InputInterface $input, OutputInterface $output):
6060

6161
public function testSetSleepDurationWithNegativeValue(): void
6262
{
63-
$stubCommand = new class('dummy:command') extends AbstractTerminableCommand {
63+
$stubCommand = new class ('dummy:command') extends AbstractTerminableCommand {
6464
protected function commandBody(InputInterface $input, OutputInterface $output): int
6565
{
6666
$this->setSleepDuration(-1);
@@ -83,7 +83,7 @@ protected function commandBody(InputInterface $input, OutputInterface $output):
8383
*/
8484
public function testReceiveSignalDuringCommandBody(int $signal): void
8585
{
86-
$stubCommand = new class($signal) extends AbstractTerminableCommand {
86+
$stubCommand = new class ($signal) extends AbstractTerminableCommand {
8787
/** @var int */
8888
private $signal;
8989

@@ -117,7 +117,7 @@ protected function commandBody(InputInterface $input, OutputInterface $output):
117117
*/
118118
public function testReceiveSignalBeforeCommandBody(int $signal): void
119119
{
120-
$stubCommand = new class('dummy:command') extends AbstractTerminableCommand {
120+
$stubCommand = new class ('dummy:command') extends AbstractTerminableCommand {
121121
protected function commandBody(InputInterface $input, OutputInterface $output): int
122122
{
123123
return 0;

0 commit comments

Comments
 (0)