Skip to content

Commit

Permalink
style-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Seriyyy95 committed Apr 23, 2024
1 parent df56311 commit c77bf8c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Dom/Dom.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function search(string $selector): array
return $nodes;
}

public function prepareForRequest(bool $throw = true)
public function prepareForRequest(bool $throw = true): void
{
$this->page->assertNotClosed();

Expand Down
6 changes: 3 additions & 3 deletions src/Dom/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ public function __construct(Page $page, int $nodeId)
$this->page = $page;
$this->nodeId = $nodeId;

$page->getSession()->on('method:DOM.documentUpdated', function (...$event) {
$page->getSession()->on('method:DOM.documentUpdated', function (...$event): void {
$this->isStale = true;
});
}

public function getNodeId(): int
{
return $this->nodeId;
return $this->nodeId;
}

public function getNodeIdForRequest(): int
Expand Down Expand Up @@ -237,7 +237,7 @@ public function assertNotError(Response $response): void
}
}

protected function prepareForRequest()
protected function prepareForRequest(): void
{
$this->page->assertNotClosed();

Expand Down
1 change: 0 additions & 1 deletion src/Exception/StaleElementException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@

class StaleElementException extends DomException
{

}
2 changes: 1 addition & 1 deletion src/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ public function dom(): Dom
{
$this->assertNotClosed();

if ($this->dom === null) {
if (null === $this->dom) {
$this->dom = new Dom($this);
}

Expand Down

0 comments on commit c77bf8c

Please sign in to comment.