Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Mar 17, 2024
1 parent d53f6b5 commit e0b4586
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ private function waitForReloadGenerator($eventName, $loaderId)

yield $delay;

// else if frame has still the previous loader, wait for the new one
// else if frame has still the previous loader, wait for the new one
} else {
yield $delay;
}
Expand Down
6 changes: 3 additions & 3 deletions src/PageUtils/PageNavigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,16 +171,16 @@ private function navigationComplete($eventName)
if ($this->page->hasLifecycleEvent($eventName)) {
return true;

// or else just wait for the new event to trigger
// or else just wait for the new event to trigger
} else {
yield $delay;
}

// else if frame has still the previous loader, wait for the new one
// else if frame has still the previous loader, wait for the new one
} elseif ($this->frame->getLatestLoaderId() == $this->previousLoaderId) {
yield $delay;

// else if a new loader is present that means that a new navigation started
// else if a new loader is present that means that a new navigation started
} else {
// if strict then throw or else replace the old navigation with the new one
if ($this->strict) {
Expand Down

0 comments on commit e0b4586

Please sign in to comment.