Completed
Push — master ( 36581b...e31d04 )
by Ehsan
02:47
created
src/Botonomous/client/ApiClient.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -117,11 +117,11 @@  discard block
 block discarded – undo
117 117
 
118 118
     /**
119 119
      * @param $method
120
-     * @param $requestBody
120
+     * @param string $requestBody
121 121
      *
122 122
      * @throws \Exception
123 123
      *
124
-     * @return mixed|\Psr\Http\Message\ResponseInterface
124
+     * @return ResponseInterface
125 125
      */
126 126
     private function sendRequest(string $method, $requestBody)
127 127
     {
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
     }
372 372
 
373 373
     /**
374
-     * @param null $method
374
+     * @param string $method
375 375
      *
376 376
      * @throws \Exception
377 377
      *
Please login to merge, or discard this patch.
src/Botonomous/listener/AbstractBaseListener.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@
 block discarded – undo
225 225
      * Return message based on the listener
226 226
      * If listener is event and event text is empty, fall back to request text.
227 227
      *
228
-     * @return mixed|string
228
+     * @return string|null
229 229
      */
230 230
     public function getMessage()
231 231
     {
Please login to merge, or discard this patch.
src/Botonomous/Sender.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
      * Specify the response type
127 127
      * If response in config is set to empty, it will be considered based on listener.
128 128
      *
129
-     * @return mixed|string
129
+     * @return string
130 130
      */
131 131
     private function getResponseType()
132 132
     {
Please login to merge, or discard this patch.
src/Botonomous/utility/ArrayUtility.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
86 86
      */
87 87
     public function sortArrayByLength(array $array)
88 88
     {
89
-        usort($array, function ($array1, $array2) {
89
+        usort($array, function($array1, $array2) {
90 90
             return strlen($array2) <=> strlen($array1);
91 91
         });
92 92
 
Please login to merge, or discard this patch.
src/Botonomous/listener/EventListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 {
14 14
     const KEY = 'event';
15 15
     const MISSING_TOKEN_OR_APP_ID_MESSAGE = 'Token or api_app_id is not provided';
16
-    const MISSING_APP_ID_MESSAGE  = 'Api app id must be provided';
16
+    const MISSING_APP_ID_MESSAGE = 'Api app id must be provided';
17 17
     const MISSING_VERIFICATION_TOKEN_MESSAGE = 'Verification token must be provided';
18 18
     const MISSING_EVENT_TYPE_MESSAGE = 'Event type must be specified';
19 19
 
Please login to merge, or discard this patch.