From af9c6a6ed7442c986d7610f5189837aefa40eb72 Mon Sep 17 00:00:00 2001 From: Scrutinizer Auto-Fixer Date: Sat, 8 Apr 2017 17:25:41 +0200 Subject: [PATCH] Scrutinizer Auto-Fixes (#13) This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com --- app/Console/Commands/Parsers/AbstractParser.php | 2 +- app/Games/BaseEngine/RedfoxBaseEngine.php | 3 +++ app/Http/Controllers/TelegramController.php | 4 ++-- app/Quests/EncounterQuest.php | 2 +- app/Telegram/AbstractCommand.php | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/Console/Commands/Parsers/AbstractParser.php b/app/Console/Commands/Parsers/AbstractParser.php index 5974c85..9524049 100644 --- a/app/Console/Commands/Parsers/AbstractParser.php +++ b/app/Console/Commands/Parsers/AbstractParser.php @@ -22,7 +22,7 @@ public static function getInstance() { - public function __construct(){ + public function __construct() { $stack = HandlerStack::create(); $stack->push( Middleware::log( diff --git a/app/Games/BaseEngine/RedfoxBaseEngine.php b/app/Games/BaseEngine/RedfoxBaseEngine.php index f8412fe..6e75a5b 100644 --- a/app/Games/BaseEngine/RedfoxBaseEngine.php +++ b/app/Games/BaseEngine/RedfoxBaseEngine.php @@ -63,6 +63,9 @@ public function doAuth() } } + /** + * @param string $html + */ public function gameIsRunning($html) { return preg_match('/team_name/i', $html); diff --git a/app/Http/Controllers/TelegramController.php b/app/Http/Controllers/TelegramController.php index d87c3df..47a9a59 100644 --- a/app/Http/Controllers/TelegramController.php +++ b/app/Http/Controllers/TelegramController.php @@ -245,7 +245,7 @@ private function tryParseEmoji($message) } /** - * @param $chatId + * @param integer $chatId * @param $text * * @return bool @@ -381,7 +381,7 @@ private function convertCoords($deg, $min, $sec) } /** - * @param $chatId + * @param integer $chatId * @param $message * @param ReplyKeyboardMarkup $keyboard * @param int|null $replyTo diff --git a/app/Quests/EncounterQuest.php b/app/Quests/EncounterQuest.php index 27b90c0..3703bb7 100644 --- a/app/Quests/EncounterQuest.php +++ b/app/Quests/EncounterQuest.php @@ -17,7 +17,7 @@ class EncounterQuest extends BaseQuest /** * EncounterQuest constructor. * - * @param $html + * @param string $html **/ public function __construct($html) { diff --git a/app/Telegram/AbstractCommand.php b/app/Telegram/AbstractCommand.php index 65487b6..7c6dee0 100644 --- a/app/Telegram/AbstractCommand.php +++ b/app/Telegram/AbstractCommand.php @@ -83,7 +83,7 @@ public function setResponseText($responseText) } /** - * @return mixed + * @return \TelegramBot\Api\Types\ReplyKeyboardMarkup|null */ public function getResponseKeyboard() {