Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit f1fe039

Browse files
committed
Fix code style
1 parent e304e7e commit f1fe039

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/WebDriverDimension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function getWidth()
6565
* @param WebDriverDimension $dimension The dimension to be compared with.
6666
* @return bool Whether the height and the width are the same as the instance.
6767
*/
68-
public function equals(WebDriverDimension $dimension)
68+
public function equals(self $dimension)
6969
{
7070
return $this->height === $dimension->getHeight() && $this->width === $dimension->getWidth();
7171
}

lib/WebDriverExpectedCondition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ function () use ($element) {
453453
* @return WebDriverExpectedCondition<mixed> Condition returns the return value of the getApply() of the given
454454
* condition.
455455
*/
456-
public static function refreshed(WebDriverExpectedCondition $condition)
456+
public static function refreshed(self $condition)
457457
{
458458
return new static(
459459
function (WebDriver $driver) use ($condition) {
@@ -558,7 +558,7 @@ function (WebDriver $driver) use ($expectedNumberOfWindows) {
558558
* @param WebDriverExpectedCondition $condition The condition to be negated.
559559
* @return mixed The negation of the result of the given condition.
560560
*/
561-
public static function not(WebDriverExpectedCondition $condition)
561+
public static function not(self $condition)
562562
{
563563
return new static(
564564
function (WebDriver $driver) use ($condition) {

lib/WebDriverPoint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function moveBy($x_offset, $y_offset)
8585
* @param WebDriverPoint $point The point to be compared with.
8686
* @return bool Whether the x and y coordinates are the same as the instance.
8787
*/
88-
public function equals(WebDriverPoint $point)
88+
public function equals(self $point)
8989
{
9090
return $this->x === $point->getX() &&
9191
$this->y === $point->getY();

0 commit comments

Comments
 (0)