Skip to content

Commit

Permalink
Fix: Run 'tools/php-cs-fixer fix'
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz authored and sebastianbergmann committed Nov 29, 2021
1 parent 297e6bc commit 9b18457
Show file tree
Hide file tree
Showing 183 changed files with 153 additions and 835 deletions.
2 changes: 0 additions & 2 deletions src/Event/Dispatcher/DeferredDispatcher.php
Expand Up @@ -15,9 +15,7 @@
final class DeferredDispatcher implements SubscribableDispatcher
{
private SubscribableDispatcher $dispatcher;

private EventCollection $events;

private bool $recording = true;

public function __construct(SubscribableDispatcher $dispatcher)
Expand Down
4 changes: 0 additions & 4 deletions src/Event/Emitter/DispatchingEmitter.php
Expand Up @@ -27,13 +27,9 @@
final class DispatchingEmitter implements Emitter
{
private Dispatcher $dispatcher;

private Telemetry\System $system;

private Telemetry\Snapshot $startSnapshot;

private Telemetry\Snapshot $previousSnapshot;

private bool $testExecutionStarted = false;

public function __construct(Dispatcher $dispatcher, Telemetry\System $system)
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/EventCollectionIterator.php
Expand Up @@ -21,7 +21,6 @@ final class EventCollectionIterator implements Iterator
* @psalm-var list<Event>
*/
private array $events;

private int $position = 0;

public function __construct(EventCollection $events)
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/GlobalState/Captured.php
Expand Up @@ -19,7 +19,6 @@
final class Captured implements Event
{
private Telemetry\Info $telemetryInfo;

private Snapshot $snapshot;

public function __construct(Telemetry\Info $telemetryInfo, Snapshot $snapshot)
Expand Down
3 changes: 0 additions & 3 deletions src/Event/Events/GlobalState/Modified.php
Expand Up @@ -21,11 +21,8 @@
final class Modified implements Event
{
private Telemetry\Info $telemetryInfo;

private Snapshot $snapshotBefore;

private Snapshot $snapshotAfter;

private string $diff;

public function __construct(Telemetry\Info $telemetryInfo, Snapshot $snapshotBefore, Snapshot $snapshotAfter, string $diff)
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/GlobalState/Restored.php
Expand Up @@ -19,7 +19,6 @@
final class Restored implements Event
{
private Telemetry\Info $telemetryInfo;

private Snapshot $snapshot;

public function __construct(Telemetry\Info $telemetryInfo, Snapshot $snapshot)
Expand Down
2 changes: 0 additions & 2 deletions src/Event/Events/Test/Aborted.php
Expand Up @@ -22,9 +22,7 @@
final class Aborted implements Event
{
private Telemetry\Info $telemetryInfo;

private Code\Test $test;

private Throwable $throwable;

public function __construct(Telemetry\Info $telemetryInfo, Code\Test $test, Throwable $throwable)
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/Test/AfterLastTestMethodCalled.php
Expand Up @@ -25,7 +25,6 @@ final class AfterLastTestMethodCalled implements Event
* @psalm-var class-string
*/
private string $testClassName;

private Code\ClassMethod $calledMethod;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/Test/AfterTestMethodCalled.php
Expand Up @@ -25,7 +25,6 @@ final class AfterTestMethodCalled implements Event
* @psalm-var class-string
*/
private string $testClassName;

private Code\ClassMethod $calledMethod;

/**
Expand Down
4 changes: 0 additions & 4 deletions src/Event/Events/Test/AssertionMade.php
Expand Up @@ -20,13 +20,9 @@
final class AssertionMade implements Event
{
private Telemetry\Info $telemetryInfo;

private mixed $value;

private Constraint\Constraint $constraint;

private string $message;

private bool $hasFailed;

public function __construct(Telemetry\Info $telemetryInfo, mixed $value, Constraint\Constraint $constraint, string $message, bool $hasFailed)
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/Test/BeforeFirstTestMethodCalled.php
Expand Up @@ -25,7 +25,6 @@ final class BeforeFirstTestMethodCalled implements Event
* @psalm-var class-string
*/
private string $testClassName;

private Code\ClassMethod $calledMethod;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/Test/BeforeTestMethodCalled.php
Expand Up @@ -25,7 +25,6 @@ final class BeforeTestMethodCalled implements Event
* @psalm-var class-string
*/
private string $testClassName;

private Code\ClassMethod $calledMethod;

/**
Expand Down
2 changes: 0 additions & 2 deletions src/Event/Events/Test/ConsideredRisky.php
Expand Up @@ -22,9 +22,7 @@
final class ConsideredRisky implements Event
{
private Telemetry\Info $telemetryInfo;

private Code\Test $test;

private Throwable $throwable;

public function __construct(Telemetry\Info $telemetryInfo, Code\Test $test, Throwable $throwable)
Expand Down
4 changes: 0 additions & 4 deletions src/Event/Events/Test/DeprecatedFeatureUsed.php
Expand Up @@ -20,13 +20,9 @@
final class DeprecatedFeatureUsed implements Event
{
private Telemetry\Info $telemetryInfo;

private Test $test;

private string $message;

private string $file;

private int $line;

public function __construct(Telemetry\Info $telemetryInfo, Test $test, string $message, string $file, int $line)
Expand Down
4 changes: 0 additions & 4 deletions src/Event/Events/Test/DeprecatedPhpFeatureUsed.php
Expand Up @@ -20,13 +20,9 @@
final class DeprecatedPhpFeatureUsed implements Event
{
private Telemetry\Info $telemetryInfo;

private Test $test;

private string $message;

private string $file;

private int $line;

public function __construct(Telemetry\Info $telemetryInfo, Test $test, string $message, string $file, int $line)
Expand Down
2 changes: 0 additions & 2 deletions src/Event/Events/Test/DeprecatedPhpunitFeatureUsed.php
Expand Up @@ -20,9 +20,7 @@
final class DeprecatedPhpunitFeatureUsed implements Event
{
private Telemetry\Info $telemetryInfo;

private Test $test;

private string $message;

public function __construct(Telemetry\Info $telemetryInfo, Test $test, string $message)
Expand Down
2 changes: 0 additions & 2 deletions src/Event/Events/Test/Errored.php
Expand Up @@ -22,9 +22,7 @@
final class Errored implements Event
{
private Telemetry\Info $telemetryInfo;

private Code\Test $test;

private Throwable $throwable;

public function __construct(Telemetry\Info $telemetryInfo, Code\Test $test, Throwable $throwable)
Expand Down
2 changes: 0 additions & 2 deletions src/Event/Events/Test/Failed.php
Expand Up @@ -22,9 +22,7 @@
final class Failed implements Event
{
private Telemetry\Info $telemetryInfo;

private Code\Test $test;

private Throwable $throwable;

public function __construct(Telemetry\Info $telemetryInfo, Code\Test $test, Throwable $throwable)
Expand Down
2 changes: 0 additions & 2 deletions src/Event/Events/Test/Finished.php
Expand Up @@ -20,9 +20,7 @@
final class Finished implements Event
{
private Telemetry\Info $telemetryInfo;

private Code\Test $test;

private int $numberOfAssertionsPerformed;

public function __construct(Telemetry\Info $telemetryInfo, Code\Test $test, int $numberOfAssertionsPerformed)
Expand Down
2 changes: 0 additions & 2 deletions src/Event/Events/Test/OutputPrinted.php
Expand Up @@ -21,9 +21,7 @@
final class OutputPrinted implements Event
{
private Telemetry\Info $telemetryInfo;

private Code\Test $test;

private string $output;

public function __construct(Telemetry\Info $telemetryInfo, Code\Test $test, string $output)
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/Test/Passed.php
Expand Up @@ -20,7 +20,6 @@
final class Passed implements Event
{
private Telemetry\Info $telemetryInfo;

private Code\Test $test;

public function __construct(Telemetry\Info $telemetryInfo, Code\Test $test)
Expand Down
2 changes: 0 additions & 2 deletions src/Event/Events/Test/PassedWithWarning.php
Expand Up @@ -22,9 +22,7 @@
final class PassedWithWarning implements Event
{
private Telemetry\Info $telemetryInfo;

private Code\Test $test;

private Throwable $throwable;

public function __construct(Telemetry\Info $telemetryInfo, Code\Test $test, Throwable $throwable)
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/Test/PostConditionCalled.php
Expand Up @@ -25,7 +25,6 @@ final class PostConditionCalled implements Event
* @psalm-var class-string
*/
private string $testClassName;

private Code\ClassMethod $calledMethod;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/Test/PreConditionCalled.php
Expand Up @@ -25,7 +25,6 @@ final class PreConditionCalled implements Event
* @psalm-var class-string
*/
private string $testClassName;

private Code\ClassMethod $calledMethod;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/Test/Prepared.php
Expand Up @@ -20,7 +20,6 @@
final class Prepared implements Event
{
private Telemetry\Info $telemetryInfo;

private Code\Test $test;

public function __construct(Telemetry\Info $telemetryInfo, Code\Test $test)
Expand Down
3 changes: 0 additions & 3 deletions src/Event/Events/Test/Skipped.php
Expand Up @@ -23,11 +23,8 @@
final class Skipped implements Event
{
private Telemetry\Info $telemetryInfo;

private Code\Test $test;

private ?Throwable $throwable;

private string $message;

public function __construct(Telemetry\Info $telemetryInfo, Code\Test $test, ?Throwable $throwable, string $message)
Expand Down
3 changes: 0 additions & 3 deletions src/Event/Events/TestDouble/MockObjectCreatedFromWsdl.php
Expand Up @@ -19,7 +19,6 @@
final class MockObjectCreatedFromWsdl implements Event
{
private Telemetry\Info $telemetryInfo;

private string $wsdlFile;

/**
Expand All @@ -36,9 +35,7 @@ final class MockObjectCreatedFromWsdl implements Event
* @psalm-var list<string>
*/
private array $methods;

private bool $callOriginalConstructor;

private array $options;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/TestDouble/TestProxyCreated.php
Expand Up @@ -24,7 +24,6 @@ final class TestProxyCreated implements Event
* @psalm-var class-string
*/
private string $className;

private array $constructorArguments;

/**
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/TestRunner/BootstrapFinished.php
Expand Up @@ -19,7 +19,6 @@
final class BootstrapFinished implements Event
{
private Telemetry\Info $telemetryInfo;

private string $filename;

public function __construct(Telemetry\Info $telemetryInfo, string $filename)
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/TestRunner/Configured.php
Expand Up @@ -19,7 +19,6 @@
final class Configured implements Event
{
private Telemetry\Info $telemetryInfo;

private Configuration $configuration;

public function __construct(Telemetry\Info $telemetryInfo, Configuration $configuration)
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/TestRunner/ExecutionStarted.php
Expand Up @@ -20,7 +20,6 @@
final class ExecutionStarted implements Event
{
private Telemetry\Info $telemetryInfo;

private TestSuite $testSuite;

public function __construct(Telemetry\Info $telemetryInfo, TestSuite $testSuite)
Expand Down
2 changes: 0 additions & 2 deletions src/Event/Events/TestRunner/ExtensionLoaded.php
Expand Up @@ -19,9 +19,7 @@
final class ExtensionLoaded implements Event
{
private Telemetry\Info $telemetryInfo;

private string $name;

private string $version;

public function __construct(Telemetry\Info $telemetryInfo, string $name, string $version)
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/TestRunner/Started.php
Expand Up @@ -20,7 +20,6 @@
final class Started implements Event
{
private Telemetry\Info $telemetryInfo;

private Runtime $runtime;

public function __construct(Telemetry\Info $telemetryInfo, Runtime $runtime)
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/TestSuite/Filtered.php
Expand Up @@ -19,7 +19,6 @@
final class Filtered implements Event
{
private Telemetry\Info $telemetryInfo;

private TestSuite $testSuite;

public function __construct(Telemetry\Info $telemetryInfo, TestSuite $testSuite)
Expand Down
2 changes: 0 additions & 2 deletions src/Event/Events/TestSuite/Finished.php
Expand Up @@ -19,9 +19,7 @@
final class Finished implements Event
{
private Telemetry\Info $telemetryInfo;

private TestSuite $testSuite;

private Result $result;

public function __construct(Telemetry\Info $telemetryInfo, TestSuite $testSuite, Result $result)
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/TestSuite/Loaded.php
Expand Up @@ -19,7 +19,6 @@
final class Loaded implements Event
{
private Telemetry\Info $telemetryInfo;

private TestSuite $testSuite;

public function __construct(Telemetry\Info $telemetryInfo, TestSuite $testSuite)
Expand Down
3 changes: 0 additions & 3 deletions src/Event/Events/TestSuite/Sorted.php
Expand Up @@ -18,11 +18,8 @@
final class Sorted implements Event
{
private Telemetry\Info $telemetryInfo;

private int $executionOrder;

private int $executionOrderDefects;

private bool $resolveDependencies;

public function __construct(Telemetry\Info $telemetryInfo, int $executionOrder, int $executionOrderDefects, bool $resolveDependencies)
Expand Down
1 change: 0 additions & 1 deletion src/Event/Events/TestSuite/Started.php
Expand Up @@ -19,7 +19,6 @@
final class Started implements Event
{
private Telemetry\Info $telemetryInfo;

private TestSuite $testSuite;

public function __construct(Telemetry\Info $telemetryInfo, TestSuite $testSuite)
Expand Down
12 changes: 4 additions & 8 deletions src/Event/Facade.php
Expand Up @@ -16,15 +16,11 @@
*/
final class Facade
{
private static ?TypeMap $typeMap = null;

private static ?Emitter $emitter = null;

private static ?Emitter $suspended = null;

private static ?TypeMap $typeMap = null;
private static ?Emitter $emitter = null;
private static ?Emitter $suspended = null;
private static ?DeferredDispatcher $deferredDispatcher = null;

private static bool $sealed = false;
private static bool $sealed = false;

/**
* @throws EventFacadeIsSealedException
Expand Down
1 change: 0 additions & 1 deletion src/Event/Value/ClassMethod.php
Expand Up @@ -19,7 +19,6 @@ final class ClassMethod
* @psalm-var class-string
*/
private string $className;

private string $methodName;

/**
Expand Down

0 comments on commit 9b18457

Please sign in to comment.