Skip to content

Commit 4627188

Browse files
🤖 pint (#44)
Automated commit by the `Pint` workflow. Co-authored-by: tastendruck[bot] <191388063+tastendruck[bot]@users.noreply.github.com>
1 parent 7bd3b36 commit 4627188

4 files changed

Lines changed: 6 additions & 10 deletions

File tree

src/Console/ConstraintCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace TypistTech\PhpMatrix\Console;
66

7-
use RuntimeException;
87
use Symfony\Component\Console\Attribute\Argument;
98
use Symfony\Component\Console\Attribute\AsCommand;
109
use Symfony\Component\Console\Command\Command;
@@ -61,7 +60,7 @@ public function __invoke(
6160
}
6261

6362
$result = json_encode(
64-
(object)[
63+
(object) [
6564
'constraint' => $constraint,
6665
'versions' => Versions::sort(...$versions),
6766
'lowest' => Versions::lowest(...$versions),

src/Console/Mode.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace TypistTech\PhpMatrix\Console;
66

7-
use Symfony\Component\Console\Exception\InvalidArgumentException;
87
use TypistTech\PhpMatrix\Matrix;
98
use TypistTech\PhpMatrix\MatrixInterface;
109
use TypistTech\PhpMatrix\MinorOnlyMatrix;

src/Console/PrintErrorTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ trait PrintErrorTrait
1010
{
1111
private function printError(SymfonyStyle $io, string $message): void
1212
{
13-
$io
14-
->getErrorStyle()
15-
->error($message);
13+
$io
14+
->getErrorStyle()
15+
->error($message);
1616
}
1717
}

src/Console/Source.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace TypistTech\PhpMatrix\Console;
66

7-
use Symfony\Component\Console\Attribute\Option;
8-
use Symfony\Component\Console\Exception\InvalidArgumentException;
97
use TypistTech\PhpMatrix\Releases\OfflineReleases;
108
use TypistTech\PhpMatrix\Releases\PhpNetReleases;
119
use TypistTech\PhpMatrix\ReleasesInterface;
@@ -37,10 +35,10 @@ public function releases(Mode $mode): ReleasesInterface
3735

3836
public static function description(): string
3937
{
40-
$desc = 'Available sources:' . PHP_EOL;
38+
$desc = 'Available sources:'.PHP_EOL;
4139

4240
foreach (self::cases() as $source) {
43-
$desc .= "- <comment>{$source->value}</comment>: {$source->explanation()}" . PHP_EOL;
41+
$desc .= "- <comment>{$source->value}</comment>: {$source->explanation()}".PHP_EOL;
4442
}
4543

4644
$desc .= PHP_EOL;

0 commit comments

Comments
 (0)