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
2 changes: 1 addition & 1 deletion bin/php-matrix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ declare(strict_types=1);

use TypistTech\PhpMatrix\Console\Application;

include $_composer_autoload_path ?? __DIR__ . '/../vendor/autoload.php';
include $_composer_autoload_path ?? __DIR__.'/../vendor/autoload.php';

Application::make()
->run();
4 changes: 2 additions & 2 deletions bin/update-all-versions
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ declare(strict_types=1);
use Composer\Semver\Semver;
use TypistTech\PhpMatrix\Releases\PhpNetReleases;

include $_composer_autoload_path ?? __DIR__ . '/../vendor/autoload.php';
include $_composer_autoload_path ?? __DIR__.'/../vendor/autoload.php';

$releases = new PhpNetReleases;
$data = $releases->all();
$data = Semver::rsort($data);

$content = json_encode($data, JSON_THROW_ON_ERROR | JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
file_put_contents(__DIR__ . '/../resources/all-versions.json', $content);
file_put_contents(__DIR__.'/../resources/all-versions.json', $content);
3 changes: 2 additions & 1 deletion src/Console/ModeOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

namespace TypistTech\PhpMatrix\Console;

use Attribute;
use Symfony\Component\Console\Attribute\Option;

#[\Attribute(\Attribute::TARGET_PARAMETER)]
#[Attribute(Attribute::TARGET_PARAMETER)]
class ModeOption extends Option
{
public function __construct()
Expand Down
3 changes: 1 addition & 2 deletions src/Console/PrintErrorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ trait PrintErrorTrait
{
private function printError(SymfonyStyle $io, string $message): void
{
$io
->getErrorStyle()
$io->getErrorStyle()
->error($message);
}
}
3 changes: 2 additions & 1 deletion src/Console/SourceOption.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@

namespace TypistTech\PhpMatrix\Console;

use Attribute;
use Symfony\Component\Console\Attribute\Option;

#[\Attribute(\Attribute::TARGET_PARAMETER)]
#[Attribute(Attribute::TARGET_PARAMETER)]
class SourceOption extends Option
{
public function __construct()
Expand Down