Completed
Push — master ( 3af662...c510f9 )
by Roma
01:32
created
src/TelegramBotAPI/Core/Checks.php 2 patches
Doc Comments   +12 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@  discard block
 block discarded – undo
18 18
 class Checks {
19 19
 
20 20
 
21
+    /**
22
+     * @param string $key
23
+     */
21 24
     private function checkRequired($parameters, $key) {
22 25
 
23 26
         if (empty($parameters[$key])) {
@@ -27,6 +30,9 @@  discard block
 block discarded – undo
27 30
         return $parameters[$key];
28 31
     }
29 32
 
33
+    /**
34
+     * @param string $key
35
+     */
30 36
     private function checkNoRequired($parameters, $key) {
31 37
 
32 38
         if (!isset($parameters[$key])) {
@@ -39,7 +45,7 @@  discard block
 block discarded – undo
39 45
 
40 46
     /**
41 47
      * @param int $limit
42
-     * @return bool
48
+     * @return null|integer
43 49
      */
44 50
     protected function checkLimit($limit) {
45 51
 
@@ -56,7 +62,7 @@  discard block
 block discarded – undo
56 62
 
57 63
     /**
58 64
      * @param int $limit
59
-     * @return bool
65
+     * @return null|integer
60 66
      */
61 67
     protected function checkLocalLimit($limit) {
62 68
 
@@ -73,7 +79,7 @@  discard block
 block discarded – undo
73 79
 
74 80
     /**
75 81
      * @param string $caption
76
-     * @return bool
82
+     * @return null|string
77 83
      */
78 84
     protected function checkCaptionLimit($caption) {
79 85
 
@@ -91,7 +97,7 @@  discard block
 block discarded – undo
91 97
 
92 98
     /**
93 99
      * @param $keyboard
94
-     * @return bool
100
+     * @return string|null
95 101
      */
96 102
     protected function checkKeyboardType($keyboard) {
97 103
 
@@ -109,7 +115,7 @@  discard block
 block discarded – undo
109 115
 
110 116
     /**
111 117
      * @param string $actionType
112
-     * @return bool
118
+     * @return string|null
113 119
      */
114 120
     protected function checkActionType($actionType) {
115 121
 
@@ -135,7 +141,7 @@  discard block
 block discarded – undo
135 141
 
136 142
     /**
137 143
      * @param string $mode
138
-     * @return bool
144
+     * @return null|string
139 145
      */
140 146
     protected function checkParseModeType($mode) {
141 147
 
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace TelegramBotAPI\Core;
4 4
 
5 5
 
6
-use TelegramBotAPI\Types\InputFile;
7
-use TelegramBotAPI\Types\LabeledPrice;
8 6
 use TelegramBotAPI\Constants;
9 7
 use TelegramBotAPI\PrivateConst;
10 8
 use TelegramBotAPI\Types\ForceReply;
Please login to merge, or discard this patch.