mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 14:23:34 +02:00
chore: coding style changes
This commit is contained in:
@@ -29,14 +29,9 @@ use Whoops\Exception\Inspector;
|
||||
*/
|
||||
final class Kernel
|
||||
{
|
||||
/**
|
||||
* Either the kernel is terminated or not.
|
||||
*/
|
||||
private bool $terminated = false;
|
||||
|
||||
/**
|
||||
* The Kernel bootstrappers.
|
||||
*
|
||||
* @var array<int, class-string>
|
||||
*/
|
||||
private const array BOOTSTRAPPERS = [
|
||||
@@ -51,10 +46,6 @@ final class Kernel
|
||||
];
|
||||
|
||||
/**
|
||||
* The Kernel restarters — resolved and invoked from `bin/pest`
|
||||
* before any other Pest class is touched, so the list is exposed
|
||||
* on the Kernel rather than driven from `bin/pest` directly.
|
||||
*
|
||||
* @var array<int, class-string<Contracts\Restarter>>
|
||||
*/
|
||||
public const array RESTARTERS = [
|
||||
@@ -62,14 +53,8 @@ final class Kernel
|
||||
Restarters\PcovRestarter::class,
|
||||
];
|
||||
|
||||
/**
|
||||
* Creates a new Kernel instance.
|
||||
*/
|
||||
public function __construct(private readonly Application $application, private readonly OutputInterface $output) {}
|
||||
|
||||
/**
|
||||
* Boots the Kernel.
|
||||
*/
|
||||
public static function boot(TestSuite $testSuite, InputInterface $input, OutputInterface $output): self
|
||||
{
|
||||
$container = Container::getInstance();
|
||||
@@ -102,8 +87,6 @@ final class Kernel
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs the application, and returns the exit code.
|
||||
*
|
||||
* @param array<int, string> $originalArguments
|
||||
* @param array<int, string> $arguments
|
||||
*/
|
||||
@@ -135,9 +118,6 @@ final class Kernel
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Terminate the Kernel.
|
||||
*/
|
||||
public function terminate(): void
|
||||
{
|
||||
if ($this->terminated) {
|
||||
@@ -155,9 +135,6 @@ final class Kernel
|
||||
CallsTerminable::execute();
|
||||
}
|
||||
|
||||
/**
|
||||
* Shutdowns unexpectedly the Kernel.
|
||||
*/
|
||||
public function shutdown(): void
|
||||
{
|
||||
$this->terminate();
|
||||
|
||||
Reference in New Issue
Block a user