From 773359bd831c8efa24ef5c5f41599273ea012fd4 Mon Sep 17 00:00:00 2001
From: "tastendruck[bot]" <191388063+tastendruck[bot]@users.noreply.github.com>
Date: Sun, 12 Oct 2025 23:02:39 +0000
Subject: [PATCH] :robot: `pint`
Automated commit by the `Pint` workflow.
---
src/Console/ConstraintCommand.php | 3 +--
src/Console/Mode.php | 1 -
src/Console/PrintErrorTrait.php | 6 +++---
src/Console/Source.php | 6 ++----
4 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/src/Console/ConstraintCommand.php b/src/Console/ConstraintCommand.php
index 3fd24e3..cf0247a 100644
--- a/src/Console/ConstraintCommand.php
+++ b/src/Console/ConstraintCommand.php
@@ -4,7 +4,6 @@
namespace TypistTech\PhpMatrix\Console;
-use RuntimeException;
use Symfony\Component\Console\Attribute\Argument;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
@@ -61,7 +60,7 @@ public function __invoke(
}
$result = json_encode(
- (object)[
+ (object) [
'constraint' => $constraint,
'versions' => Versions::sort(...$versions),
'lowest' => Versions::lowest(...$versions),
diff --git a/src/Console/Mode.php b/src/Console/Mode.php
index 1a104d3..6649afc 100644
--- a/src/Console/Mode.php
+++ b/src/Console/Mode.php
@@ -4,7 +4,6 @@
namespace TypistTech\PhpMatrix\Console;
-use Symfony\Component\Console\Exception\InvalidArgumentException;
use TypistTech\PhpMatrix\Matrix;
use TypistTech\PhpMatrix\MatrixInterface;
use TypistTech\PhpMatrix\MinorOnlyMatrix;
diff --git a/src/Console/PrintErrorTrait.php b/src/Console/PrintErrorTrait.php
index 4b2bfc0..e2fc8d2 100644
--- a/src/Console/PrintErrorTrait.php
+++ b/src/Console/PrintErrorTrait.php
@@ -10,8 +10,8 @@ trait PrintErrorTrait
{
private function printError(SymfonyStyle $io, string $message): void
{
- $io
- ->getErrorStyle()
- ->error($message);
+ $io
+ ->getErrorStyle()
+ ->error($message);
}
}
diff --git a/src/Console/Source.php b/src/Console/Source.php
index fd79ab4..0d193cb 100644
--- a/src/Console/Source.php
+++ b/src/Console/Source.php
@@ -4,8 +4,6 @@
namespace TypistTech\PhpMatrix\Console;
-use Symfony\Component\Console\Attribute\Option;
-use Symfony\Component\Console\Exception\InvalidArgumentException;
use TypistTech\PhpMatrix\Releases\OfflineReleases;
use TypistTech\PhpMatrix\Releases\PhpNetReleases;
use TypistTech\PhpMatrix\ReleasesInterface;
@@ -37,10 +35,10 @@ public function releases(Mode $mode): ReleasesInterface
public static function description(): string
{
- $desc = 'Available sources:' . PHP_EOL;
+ $desc = 'Available sources:'.PHP_EOL;
foreach (self::cases() as $source) {
- $desc .= "- {$source->value}: {$source->explanation()}" . PHP_EOL;
+ $desc .= "- {$source->value}: {$source->explanation()}".PHP_EOL;
}
$desc .= PHP_EOL;