Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ jobs:
- php: '7.1'
- php: '7.2'
- php: '7.3'
- php: '7.4'
env: lint=1
- php: '7.3'
- php: '7.4'
env: deps=low

cache:
directories:
- $HOME/.composer/cache

before_install:
- if [[ $lint = '1' ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.15.3/php-cs-fixer.phar; fi
- if [[ $lint = '1' ]]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.16.1/php-cs-fixer.phar; fi
- if [[ $lint = '1' ]]; then wget https://github.com/phpstan/phpstan/releases/download/0.11.19/phpstan.phar; fi

before_script:
Expand Down
4 changes: 1 addition & 3 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,7 @@ public function getCookieJar()
}

/**
* @param string $locator The path to an element to be waited for. Can be a CSS selector or Xpath expression.
* @param int $timeoutInSecond
* @param int $intervalInMillisecond
* @param string $locator The path to an element to be waited for. Can be a CSS selector or Xpath expression.
*
* @throws NoSuchElementException
* @throws TimeoutException
Expand Down
7 changes: 1 addition & 6 deletions src/DomCrawler/Field/FileFormField.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,7 @@ protected function initialize()

$type = \strtolower($this->element->getAttribute('type'));
if ('file' !== $type) {
throw new \LogicException(
\sprintf(
'A FileFormField can only be created from an input tag with a type of file (given type is %s).',
$type
)
);
throw new \LogicException(\sprintf('A FileFormField can only be created from an input tag with a type of file (given type is %s).', $type));
}

$value = $this->element->getAttribute('value');
Expand Down
3 changes: 1 addition & 2 deletions src/PantherTestCaseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,7 @@ protected static function createAdditionalPantherClient(): PantherClient
}

/**
* @param array $options see {@see $defaultOptions}
* @param array $kernelOptions
* @param array $options see {@see $defaultOptions}
*
* @deprecated since Panther 0.7, use createHttpBrowserClient instead
*/
Expand Down
4 changes: 1 addition & 3 deletions src/WebDriver/WebDriverCheckbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,7 @@ private function byValue($value, $select = true)
}

if (!$matched) {
throw new NoSuchElementException(
\sprintf('Cannot locate option with value: %s', $value)
);
throw new NoSuchElementException(\sprintf('Cannot locate option with value: %s', $value));
}
}

Expand Down