Skip to content

Commit

Permalink
Try to make lint happier
Browse files Browse the repository at this point in the history
  • Loading branch information
WubbleWobble committed Feb 27, 2024
1 parent 73b846d commit 8aa358b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebDriver/WebDriverCheckbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ private function byVisibleText($text, $partial = false, $select = true): void

private function getRelatedElements($value = null): array
{
$valueSelector = ($value !== null) ? sprintf(' and @value = %s', XPathEscaper::escapeQuotes($value)) : '';
$valueSelector = (null !== $value) ? sprintf(' and @value = %s', XPathEscaper::escapeQuotes($value)) : '';
if (null === $formId = $this->element->getAttribute('form')) {
$form = $this->element->findElement(WebDriverBy::xpath('ancestor::form'));
if ('' === $formId = (string) $form->getAttribute('id')) {
Expand Down

0 comments on commit 8aa358b

Please sign in to comment.