From e0b45865d5626bb7a458a83eb39fd56f0da71df8 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sun, 17 Mar 2024 22:46:28 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Page.php | 2 +- src/PageUtils/PageNavigation.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Page.php b/src/Page.php index 0ee6659..3e7913e 100644 --- a/src/Page.php +++ b/src/Page.php @@ -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; } diff --git a/src/PageUtils/PageNavigation.php b/src/PageUtils/PageNavigation.php index aa45010..edc2cd8 100644 --- a/src/PageUtils/PageNavigation.php +++ b/src/PageUtils/PageNavigation.php @@ -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) {