Skip to content

Commit 320bc6b

Browse files
committed
fix: code style
1 parent a6fed2b commit 320bc6b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Playwright/Client.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ public function execute(string $guid, string $method, array $params = [], array
108108
throw new ExpectationFailedException($message);
109109
}
110110

111-
// Handle dialog creation
112111
if (isset($response['method']) && $response['method'] === '__create__'
113112
&& isset($response['params']['type']) && $response['params']['type'] === 'Dialog'
114113
&& isset($response['params']['guid'], $response['params']['initializer'])) {

src/Playwright/Dialog.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ public function message(): string
4343
}
4444

4545
/**
46-
* Returns the dialog's type (alert, confirm, prompt, beforeunload).
46+
* Returns the dialog's type (alert, confirm, prompt).
4747
*/
4848
public function type(): string
4949
{
5050
return $this->type;
5151
}
5252

5353
/**
54-
* Returns the dialog's default value (for prompt dialogs).
54+
* Returns the dialog's default value for prompt dialogs.
5555
*/
5656
public function defaultValue(): string
5757
{
@@ -60,7 +60,6 @@ public function defaultValue(): string
6060

6161
/**
6262
* Accepts the dialog.
63-
* For prompt dialogs, you can provide text input.
6463
*/
6564
public function accept(?string $promptText = null): void
6665
{

src/Playwright/Page.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ public function onDialog(Closure $handler): void
583583
'event' => 'dialog',
584584
'enabled' => true,
585585
]);
586+
586587
$this->processVoidResponse($response);
587588
}
588589

@@ -597,6 +598,7 @@ public function removeDialogHandler(): void
597598
'event' => 'dialog',
598599
'enabled' => false,
599600
]);
601+
600602
$this->processVoidResponse($response);
601603
}
602604

0 commit comments

Comments
 (0)