File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55namespace TypistTech \PhpMatrix \Console ;
66
7- use RuntimeException ;
87use Symfony \Component \Console \Attribute \Argument ;
98use Symfony \Component \Console \Attribute \AsCommand ;
109use 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 ),
Original file line number Diff line number Diff line change 44
55namespace TypistTech \PhpMatrix \Console ;
66
7- use Symfony \Component \Console \Exception \InvalidArgumentException ;
87use TypistTech \PhpMatrix \Matrix ;
98use TypistTech \PhpMatrix \MatrixInterface ;
109use TypistTech \PhpMatrix \MinorOnlyMatrix ;
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 44
55namespace TypistTech \PhpMatrix \Console ;
66
7- use Symfony \Component \Console \Attribute \Option ;
8- use Symfony \Component \Console \Exception \InvalidArgumentException ;
97use TypistTech \PhpMatrix \Releases \OfflineReleases ;
108use TypistTech \PhpMatrix \Releases \PhpNetReleases ;
119use 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 ;
You can’t perform that action at this time.
0 commit comments