Skip to content

Commit

Permalink
Make PHPCS happy and fix lowest dependency warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
unreal4u committed Dec 4, 2016
1 parent f9ffe57 commit dd6f583
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ before_script:
- if [ "$dependencies" = "lowest" ]; then composer update --prefer-lowest -n; fi;
- if [ "$dependencies" = "highest" ]; then composer update -n; fi;
script:
- vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=coverage.clover
# Setting stty prevents warning on lowest dependencies: https://github.com/sebastianbergmann/phpunit/issues/1976
- stty cols 80; vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=coverage.clover
- vendor/bin/phpcs src/ --standard=psr2 -sp
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
Expand Down
9 changes: 5 additions & 4 deletions src/Telegram/Methods/GetUpdates.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ class GetUpdates extends TelegramMethods
public $timeout = 0;

/**
* List the types of updates you want your bot to receive. For example, specify [“message”, “edited_channel_post”,
* “callback_query”] to only receive updates of these types. See Update for a complete list of available update
* types. Specify an empty list to receive all updates regardless of type (default). If not specified, the previous
* setting will be used.
* List the types of updates you want your bot to receive. For example, specify
* [“message”, “edited_channel_post”, “callback_query”]
* to only receive updates of these types. See Update for a complete list of available update types. Specify an
* empty list to receive all updates regardless of type (default). If not specified, the previous setting will be
* used.
*
* Please note that this parameter doesn't affect updates created before the call to the getUpdates, so unwanted
* updates may be received for a short period of time.
Expand Down
12 changes: 7 additions & 5 deletions src/Telegram/Methods/SetWebhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,18 @@ class SetWebhook extends TelegramMethods

/**
* Maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to
* 40. Use lower values to limit the load on your bot‘s server, and higher values to increase your bot’s throughput
* 40. Use lower values to limit the load on your bot‘s server, and higher values to increase your bot’s
* throughput
* @var int
*/
public $max_connections = 40;

/**
* List the types of updates you want your bot to receive. For example, specify [“message”, “edited_channel_post”,
* “callback_query”] to only receive updates of these types. See Update for a complete list of available update
* types. Specify an empty list to receive all updates regardless of type (default). If not specified, the previous
* setting will be used.
* List the types of updates you want your bot to receive. For example, specify
* [“message”, “edited_channel_post”, “callback_query”]
* to only receive updates of these types. See Update for a complete list of available update types. Specify an
* empty list to receive all updates regardless of type (default). If not specified, the previous setting will be
* used.
*
* Please note that this parameter doesn't affect updates created before the call to the setWebhook, so unwanted
* updates may be received for a short period of time.
Expand Down

0 comments on commit dd6f583

Please sign in to comment.