Skip to content

Commit 27cd376

Browse files
author
eldarQa
committed
Updates for review changes
1 parent 863f699 commit 27cd376

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ install:
3232

3333
script:
3434
- composer check-code
35-
- if [ "$TRAVIS_PHP_VERSION" >= "7.3" ]; then composer test-cov; else composer test; fi
35+
- if [ "$TRAVIS_PHP_VERSION" >= "8.0" ]; then composer test-cov; else composer test; fi
3636

3737
after_script:
38-
- if [ "$TRAVIS_PHP_VERSION" >= "7.3" ]; then composer test-cov-upload; fi
38+
- if [ "$TRAVIS_PHP_VERSION" >= "8.0" ]; then composer test-cov-upload; fi

src/InlineKeyboardPagination.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,8 @@ public function __construct(
231231
* @inheritdoc
232232
* @throws InlineKeyboardPaginationException
233233
*/
234-
public function getPagination(
235-
int $selectedPage = null
236-
): array {
234+
public function getPagination(int $selectedPage = null): array
235+
{
237236
if ($selectedPage !== null) {
238237
$this->setSelectedPage($selectedPage);
239238
}
@@ -347,9 +346,8 @@ protected function generateRange(): array
347346
*
348347
* @return array
349348
*/
350-
protected function generateButton(
351-
int $page
352-
): array {
349+
protected function generateButton(int $page): array
350+
{
353351
return [
354352
'text' => (string)$page,
355353
'callback_data' => $this->generateCallbackData($page),

0 commit comments

Comments
 (0)