chore: coding style changes

This commit is contained in:
nuno maduro
2026-08-07 14:52:56 +01:00
parent eb88513baf
commit 42d9b777bf
221 changed files with 139 additions and 3086 deletions
+1 -16
View File
@@ -17,14 +17,8 @@ use Symfony\Component\Console\Output\OutputInterface;
*/
final readonly class Init implements HandlesArguments
{
/**
* The option the triggers the init job.
*/
private const string INIT_OPTION = '--init';
/**
* The files that will be created.
*/
private const array STUBS = [
'phpunit.xml.stub' => 'phpunit.xml',
'Pest.php.stub' => 'tests/Pest.php',
@@ -33,15 +27,12 @@ final readonly class Init implements HandlesArguments
'Feature/ExampleTest.php.stub' => 'tests/Feature/ExampleTest.php',
];
/**
* Creates a new Plugin instance.
*/
public function __construct(
private TestSuite $testSuite,
private InputInterface $input,
private OutputInterface $output
) {
// ..
//
}
/**
@@ -63,9 +54,6 @@ final readonly class Init implements HandlesArguments
exit(0);
}
/**
* Initializes the tests directory.
*/
public function init(): void
{
$testsBaseDir = "{$this->testSuite->rootPath}/tests";
@@ -114,9 +102,6 @@ final readonly class Init implements HandlesArguments
(new Thanks($this->input, $this->output))();
}
/**
* Checks if laravel is installed through Composer
*/
private function isLaravelInstalled(): bool
{
return InstalledVersions::isInstalled('laravel/framework');