mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
chore: style changes
This commit is contained in:
@ -26,7 +26,7 @@ final class Container
|
||||
public static function getInstance(): self
|
||||
{
|
||||
if (! self::$instance instanceof \Pest\Support\Container) {
|
||||
self::$instance = new self();
|
||||
self::$instance = new self;
|
||||
}
|
||||
|
||||
return self::$instance;
|
||||
|
||||
@ -37,7 +37,7 @@ final class Coverage
|
||||
*/
|
||||
public static function isAvailable(): bool
|
||||
{
|
||||
$runtime = new Runtime();
|
||||
$runtime = new Runtime;
|
||||
|
||||
if (! $runtime->canCollectCodeCoverage()) {
|
||||
return false;
|
||||
@ -67,7 +67,7 @@ final class Coverage
|
||||
*/
|
||||
public static function usingXdebug(): bool
|
||||
{
|
||||
return (new Runtime())->hasXdebug();
|
||||
return (new Runtime)->hasXdebug();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -32,7 +32,7 @@ final class Exporter
|
||||
public static function default(): self
|
||||
{
|
||||
return new self(
|
||||
new BaseExporter()
|
||||
new BaseExporter
|
||||
);
|
||||
}
|
||||
|
||||
@ -47,7 +47,7 @@ final class Exporter
|
||||
$array = $data;
|
||||
$itemsCount = 0;
|
||||
$exporter = self::default();
|
||||
$context ??= new Context();
|
||||
$context ??= new Context;
|
||||
|
||||
$context->add($data);
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ final class StateGenerator
|
||||
{
|
||||
public function fromPhpUnitTestResult(int $passedTests, PHPUnitTestResult $testResult): State
|
||||
{
|
||||
$state = new State();
|
||||
$state = new State;
|
||||
|
||||
foreach ($testResult->testErroredEvents() as $testResultEvent) {
|
||||
if ($testResultEvent instanceof Errored) {
|
||||
|
||||
Reference in New Issue
Block a user