diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2021-09-15 02:11:51 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2021-09-15 02:11:51 +0300 |
commit | 9f3510d11a2368d4a6f993b7e758c1aed3091ee1 (patch) | |
tree | 675933537409ba0819e1083f9631bda06e4f5bc7 /test | |
parent | 03b9016b7d1b26114eb3c02649609e29fed1a51d (diff) |
Add `bool` return type where possible
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'test')
-rw-r--r-- | test/classes/Stubs/DbiDummy.php | 16 | ||||
-rw-r--r-- | test/selenium/TestBase.php | 4 |
2 files changed, 4 insertions, 16 deletions
diff --git a/test/classes/Stubs/DbiDummy.php b/test/classes/Stubs/DbiDummy.php index 991f20665f..1db41249d5 100644 --- a/test/classes/Stubs/DbiDummy.php +++ b/test/classes/Stubs/DbiDummy.php @@ -116,10 +116,8 @@ class DbiDummy implements DbiExtension * * @param string|DatabaseName $databaseName name of db to select * @param object $link mysql link resource - * - * @return bool */ - public function selectDb($databaseName, $link) + public function selectDb($databaseName, $link): bool { $databaseName = $databaseName instanceof DatabaseName ? $databaseName->getName() : $databaseName; @@ -326,10 +324,8 @@ class DbiDummy implements DbiExtension * * @param object $result database result * @param int $offset offset to seek - * - * @return bool true on success, false on failure */ - public function dataSeek($result, $offset) + public function dataSeek($result, $offset): bool { $query_data = &$this->getQueryData($result); if ($offset > count($query_data['result'])) { @@ -354,10 +350,8 @@ class DbiDummy implements DbiExtension * Check if there are any more query results from a multi query * * @param object $link the connection object - * - * @return bool false */ - public function moreResults($link) + public function moreResults($link): bool { return false; } @@ -366,10 +360,8 @@ class DbiDummy implements DbiExtension * Prepare next result from multi_query * * @param object $link the connection object - * - * @return bool false */ - public function nextResult($link) + public function nextResult($link): bool { return false; } diff --git a/test/selenium/TestBase.php b/test/selenium/TestBase.php index 7faac435e4..c36e93a8d7 100644 --- a/test/selenium/TestBase.php +++ b/test/selenium/TestBase.php @@ -730,8 +730,6 @@ abstract class TestBase extends TestCase /** * Check if user is logged in to phpmyadmin - * - * @return bool Where or not user is logged in */ public function isLoggedIn(): bool { @@ -816,8 +814,6 @@ abstract class TestBase extends TestCase * * @param string $func Locate using - cssSelector, xpath, tagName, partialLinkText, linkText, name, id, className * @param string $arg Selector - * - * @return bool Whether or not the element is present */ public function isElementPresent(string $func, string $arg): bool { |