Completed
Pull Request — master (#51)
by
unknown
04:15
created
src/Entities/CallbackQuery.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
     /**
44 44
      * \brief Get data parameter if it is set.
45
-     * @return string $data if set or empty string otherwise.
45
+     * @return Message|null $data if set or empty string otherwise.
46 46
      */
47 47
     public function getData()
48 48
     {
Please login to merge, or discard this patch.
src/Entities/InlineQuery.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 
37 37
     /**
38 38
      * \brief Get result's query.
39
-     * @return string $query If set or <code>null</code> if empty.
39
+     * @return Message|null $query If set or <code>null</code> if empty.
40 40
      */
41 41
     public function getQuery()
42 42
     {
Please login to merge, or discard this patch.
src/Entities/Message.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
     /**
36 36
      * \brief Get text parameter if it is set.
37
-     * @return string If set or <code>null</code> otherwise.
37
+     * @return Message|null If set or <code>null</code> otherwise.
38 38
      */
39 39
     public function getText()
40 40
     {
Please login to merge, or discard this patch.
src/Entities/InlineQueryResults.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      */
128 128
     public function addResult(array $result) : int
129 129
     {
130
-        if (array_key_exists('type', $result) && ! in_array($result['type'], $this->accepted_type)) {
130
+        if (array_key_exists('type', $result) && !in_array($result['type'], $this->accepted_type)) {
131 131
             throw new BotException("Result has wrong or no type at all. Check that the result has a value of key 'type' that correspond to a type in the API Reference");
132 132
         }
133 133
 
@@ -171,8 +171,8 @@  discard block
 block discarded – undo
171 171
             'disable_web_page_preview' => $disable_web_preview
172 172
         ]);
173 173
         
174
-        if ( is_null($reply_markup) ) {
175
-            unset( $this->results[ $this->id_result ]['reply_markup'] );
174
+        if (is_null($reply_markup)) {
175
+            unset($this->results[$this->id_result]['reply_markup']);
176 176
         }
177 177
 
178 178
         return $this->id_result++;
Please login to merge, or discard this patch.