Skip to content

Commit

Permalink
Disable param alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
uuf6429 committed Jun 14, 2023
1 parent e2c230d commit c5496ca
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ trim_trailing_whitespace = true

[.github/workflows/*.yml]
indent_size = 2

[*.php]
ij_php_align_multiline_parameters = false
24 changes: 12 additions & 12 deletions src/WebdriverClassicDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ class WebdriverClassicDriver extends CoreDriver
* @throws DriverException
*/
public function __construct(
string $browserName = null,
array $desiredCapabilities = null,
string $webDriverHost = null,
string $browserName = null,
array $desiredCapabilities = null,
string $webDriverHost = null,
Escaper $xpathEscaper = null
) {
$this->browserName = $browserName ?? self::DEFAULT_BROWSER;
Expand Down Expand Up @@ -911,9 +911,9 @@ public function getBrowserName(): string
/**
* Returns Session ID of WebDriver or `null`, when session not started yet.
*
* @api
* @return string|null
* @throws DriverException
* @api
*/
public function getWebDriverSessionId(): ?string
{
Expand Down Expand Up @@ -961,8 +961,8 @@ public function getDesiredCapabilities(): array
/**
* Globally press a key i.e. not typing into an element.
*
* @api
* @throws DriverException
* @api
*/
public function globalKeyPress($char, $modifier = null): void
{
Expand All @@ -979,12 +979,12 @@ public function globalKeyPress($char, $modifier = null): void
/**
* Drag and drop an element by x,y pixels.
*
* @api
* @throws DriverException
* @api
*/
public function dragBy(
#[Language('XPath')]
$sourceXpath,
$sourceXpath,
int $xOffset,
int $yOffset
): void {
Expand Down Expand Up @@ -1119,7 +1119,7 @@ private function executeJsOnXpath(
private function executeJsOnElement(
RemoteWebElement $element,
#[Language('JavaScript')]
string $script
string $script
) {
return $this->getWebDriver()->executeScript($script, [$element]);
}
Expand Down Expand Up @@ -1237,7 +1237,7 @@ private function withWindow(?string $name, callable $callback): void
*/
private function findElement(
#[Language('XPath')]
string $xpath,
string $xpath,
RemoteWebElement $parent = null
): RemoteWebElement {
try {
Expand Down Expand Up @@ -1349,9 +1349,9 @@ private function deselectAllOptions(RemoteWebElement $element): void
private function ensureInputType(
RemoteWebElement $element,
#[Language('XPath')]
string $xpath,
string $type,
string $action
string $xpath,
string $type,
string $action
): void {
if ($element->getTagName() !== 'input' || $element->getAttribute('type') !== $type) {
throw new DriverException(
Expand Down

0 comments on commit c5496ca

Please sign in to comment.