mirror of
https://github.com/pestphp/pest.git
synced 2026-12-04 23:15:06 +01:00
chore: coding style changes
This commit is contained in:
+1
-16
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user