Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/Console/ConstraintCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -61,7 +60,7 @@ public function __invoke(
}

$result = json_encode(
(object)[
(object) [
'constraint' => $constraint,
'versions' => Versions::sort(...$versions),
'lowest' => Versions::lowest(...$versions),
Expand Down
1 change: 0 additions & 1 deletion src/Console/Mode.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 3 additions & 3 deletions src/Console/PrintErrorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ trait PrintErrorTrait
{
private function printError(SymfonyStyle $io, string $message): void
{
$io
->getErrorStyle()
->error($message);
$io
->getErrorStyle()
->error($message);
}
}
6 changes: 2 additions & 4 deletions src/Console/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 .= "- <comment>{$source->value}</comment>: {$source->explanation()}" . PHP_EOL;
$desc .= "- <comment>{$source->value}</comment>: {$source->explanation()}".PHP_EOL;
}

$desc .= PHP_EOL;
Expand Down