Skip to content

Commit 66353b0

Browse files
nikophilkbond
authored andcommitted
bot: fix cs [skip ci]
1 parent 4ad6074 commit 66353b0

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

src/Browser/KernelBrowser.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
*/
3333
class KernelBrowser extends Browser
3434
{
35-
private ?Browser\HttpOptions $defaultHttpOptions = null;
35+
private ?HttpOptions $defaultHttpOptions = null;
3636

3737
/**
3838
* @internal
@@ -103,7 +103,7 @@ final public function catchExceptions(): self
103103
* to determine the expected exception class. When
104104
* exception is caught, callable is invoked with
105105
* the caught exception
106-
* @param Browser\string|null $expectedMessage Assert the caught exception message "contains"
106+
* @param string|null $expectedMessage Assert the caught exception message "contains"
107107
* this string
108108
*/
109109
public function expectException($expectedException, ?string $expectedMessage = null): self
@@ -280,7 +280,7 @@ final public function assertRedirectedTo(string $expected, int $max = \PHP_INT_M
280280
*/
281281
final public function setDefaultHttpOptions($options): self
282282
{
283-
$this->defaultHttpOptions = Browser\HttpOptions::create($options);
283+
$this->defaultHttpOptions = HttpOptions::create($options);
284284

285285
return $this;
286286
}
@@ -296,7 +296,7 @@ final public function request(string $method, string $url, $options = []): self
296296
$options = $this->defaultHttpOptions->merge($options);
297297
}
298298

299-
$options = Browser\HttpOptions::create($options);
299+
$options = HttpOptions::create($options);
300300

301301
$this->session()->request($method, $options->addQueryToUrl($url), $options);
302302

@@ -497,7 +497,7 @@ final public function assertJsonMatches(string $expression, $expected): self
497497
return $this;
498498
}
499499

500-
final public function json(): Browser\Json
500+
final public function json(): Json
501501
{
502502
return $this->assertJson()->session()->json();
503503
}
@@ -506,7 +506,7 @@ protected function useParameters(): array
506506
{
507507
return [
508508
...parent::useParameters(),
509-
Parameter::typed(Browser\Json::class, Parameter::factory(fn() => $this->json())),
509+
Parameter::typed(Json::class, Parameter::factory(fn() => $this->json())),
510510
Parameter::typed(DataCollectorInterface::class, Parameter::factory(function(string $class) {
511511
foreach ($this->profile()->getCollectors() as $collector) {
512512
if ($class === $collector::class) {

src/Browser/PantherBrowser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ final public function saveConsoleLog(string $filename): self
173173

174174
final public function dumpConsoleLog(): self
175175
{
176-
Browser\Session::varDump($this->client()->manage()->getLog('browser'));
176+
Session::varDump($this->client()->manage()->getLog('browser'));
177177

178178
return $this;
179179
}

src/Browser/Test/BootstrappedExtension.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ class BootstrappedExtension
3333
{
3434
public function bootstrap(Configuration $configuration, Facade $facade, ParameterCollection $parameters): void
3535
{
36-
$extension = new Browser\Test\LegacyExtension();
36+
$extension = new LegacyExtension();
3737

3838
$facade->registerSubscriber(new class($extension) implements TestRunnerStartedSubscriber {
3939
public function __construct(
40-
private Browser\Test\LegacyExtension $extension,
40+
private LegacyExtension $extension,
4141
) {
4242
}
4343

@@ -49,7 +49,7 @@ public function notify(TestRunnerStartedEvent $event): void
4949

5050
$facade->registerSubscriber(new class($extension) implements TestRunnerFinishedSubscriber {
5151
public function __construct(
52-
private Browser\Test\LegacyExtension $extension,
52+
private LegacyExtension $extension,
5353
) {
5454
}
5555

@@ -61,7 +61,7 @@ public function notify(TestRunnerFinishedEvent $event): void
6161

6262
$facade->registerSubscriber(new class($extension) implements TestStartedSubscriber {
6363
public function __construct(
64-
private Browser\Test\LegacyExtension $extension,
64+
private LegacyExtension $extension,
6565
) {
6666
}
6767

@@ -73,7 +73,7 @@ public function notify(TestStartedEvent $event): void
7373

7474
$facade->registerSubscriber(new class($extension) implements TestFinishedSubscriber {
7575
public function __construct(
76-
private Browser\Test\LegacyExtension $extension,
76+
private LegacyExtension $extension,
7777
) {
7878
}
7979

@@ -88,14 +88,14 @@ public function notify(TestFinishedEvent $event): void
8888

8989
$facade->registerSubscriber(new class($extension) implements ErroredSubscriber {
9090
public function __construct(
91-
private Browser\Test\LegacyExtension $extension,
91+
private LegacyExtension $extension,
9292
) {
9393
}
9494

9595
public function notify(Errored $event): void
9696
{
9797
$this->extension->executeAfterTestError(
98-
Browser\Test\BootstrappedExtension::testName($event->test()),
98+
BootstrappedExtension::testName($event->test()),
9999
$event->throwable()->message(),
100100
(float) $event->telemetryInfo()->time()->seconds(),
101101
);
@@ -104,14 +104,14 @@ public function notify(Errored $event): void
104104

105105
$facade->registerSubscriber(new class($extension) implements FailedSubscriber {
106106
public function __construct(
107-
private Browser\Test\LegacyExtension $extension,
107+
private LegacyExtension $extension,
108108
) {
109109
}
110110

111111
public function notify(Failed $event): void
112112
{
113113
$this->extension->executeAfterTestFailure(
114-
Browser\Test\BootstrappedExtension::testName($event->test()),
114+
BootstrappedExtension::testName($event->test()),
115115
$event->throwable()->message(),
116116
(float) $event->telemetryInfo()->time()->seconds())
117117
;
@@ -136,6 +136,6 @@ public static function testName(Test $test): string
136136
*/
137137
public static function registerBrowser(Browser $browser): void
138138
{
139-
Browser\Test\LegacyExtension::registerBrowser($browser);
139+
LegacyExtension::registerBrowser($browser);
140140
}
141141
}

0 commit comments

Comments
 (0)