@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | * |
| 192 | 192 | * @param string $data To store data |
| 193 | 193 | * |
| 194 | - * @return json |
|
| 194 | + * @return string |
|
| 195 | 195 | */ |
| 196 | 196 | public function onSidebar($data) |
| 197 | 197 | { |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | * @param string $data to store data |
| 206 | 206 | * @param boolean $para to store True/False |
| 207 | 207 | * |
| 208 | - * @return json |
|
| 208 | + * @return string |
|
| 209 | 209 | */ |
| 210 | 210 | public function onConversation($data, $para) |
| 211 | 211 | { |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | * @param string $data to store data |
| 220 | 220 | * @param boolean $para to store True/False |
| 221 | 221 | * |
| 222 | - * @return json |
|
| 222 | + * @return string |
|
| 223 | 223 | */ |
| 224 | 224 | public function onReceiver($data, $para) |
| 225 | 225 | { |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | * |
| 233 | 233 | * @param string $data to store data |
| 234 | 234 | * |
| 235 | - * @return json |
|
| 235 | + * @return string |
|
| 236 | 236 | */ |
| 237 | 237 | public function onSearch($data) |
| 238 | 238 | { |
@@ -245,7 +245,7 @@ discard block |
||
| 245 | 245 | * |
| 246 | 246 | * @param string $data to store data |
| 247 | 247 | * |
| 248 | - * @return json |
|
| 248 | + * @return string |
|
| 249 | 249 | */ |
| 250 | 250 | public function onCompose($data) |
| 251 | 251 | { |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | * |
| 259 | 259 | * @param string $data to store data |
| 260 | 260 | * |
| 261 | - * @return json |
|
| 261 | + * @return string|null |
|
| 262 | 262 | */ |
| 263 | 263 | public function onReply($data) |
| 264 | 264 | { |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | * To Show error due to any problem occured |
| 285 | 285 | * |
| 286 | 286 | * @param ConnectionInterface $conn To store client details |
| 287 | - * @param Exception $e To store exception |
|
| 287 | + * @param \Exception $e To store exception |
|
| 288 | 288 | * |
| 289 | 289 | * @return void |
| 290 | 290 | */ |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | * |
| 64 | 64 | * @param object $msg To store user id and suggestion value |
| 65 | 65 | * |
| 66 | - * @return json |
|
| 66 | + * @return string |
|
| 67 | 67 | */ |
| 68 | 68 | public function selectUser($msg) |
| 69 | 69 | { |
@@ -65,10 +65,10 @@ |
||
| 65 | 65 | /** |
| 66 | 66 | * Fetch data from DB and show to user. |
| 67 | 67 | * |
| 68 | - * @param json $msg To store message |
|
| 68 | + * @param string $msg To store message |
|
| 69 | 69 | * @param boollen $para To store True/False |
| 70 | 70 | * |
| 71 | - * @return json |
|
| 71 | + * @return string |
|
| 72 | 72 | */ |
| 73 | 73 | public function conversationLoad($msg, $para) |
| 74 | 74 | { |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | * |
| 65 | 65 | * @param array $data To store User Credentials |
| 66 | 66 | * |
| 67 | - * @return json |
|
| 67 | + * @return string |
|
| 68 | 68 | */ |
| 69 | 69 | public function authLogin($data) |
| 70 | 70 | { |
@@ -57,10 +57,10 @@ |
||
| 57 | 57 | /** |
| 58 | 58 | * Swaping value of conversation class to modify them for receiver |
| 59 | 59 | * |
| 60 | - * @param json $msg To store message |
|
| 61 | - * @param boollen $para To store True/False |
|
| 60 | + * @param string $msg To store message |
|
| 61 | + * @param boolean $para To store True/False |
|
| 62 | 62 | * |
| 63 | - * @return json |
|
| 63 | + * @return string |
|
| 64 | 64 | */ |
| 65 | 65 | public function receiverLoad($msg, $para) |
| 66 | 66 | { |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | $this->conversation->conversationLoad($msg, $para) |
| 77 | 77 | ); |
| 78 | 78 | // $id1 = json_decode($msg)->details; |
| 79 | - for ($i = 1 ; $i < count($this->messages); $i++) { |
|
| 79 | + for ($i = 1; $i < count($this->messages); $i++) { |
|
| 80 | 80 | $this->messages[$i]->start = $id1; |
| 81 | 81 | } |
| 82 | 82 | $id2 = bin2hex(convert_uuencode($id2)); |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | * |
| 69 | 69 | * @param object $data To store user details |
| 70 | 70 | * |
| 71 | - * @return json |
|
| 71 | + * @return string|null |
|
| 72 | 72 | */ |
| 73 | 73 | public function authRegister($data) |
| 74 | 74 | { |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | * |
| 65 | 65 | * @param object $suggestion To store user id and suggestion value |
| 66 | 66 | * |
| 67 | - * @return json |
|
| 67 | + * @return string |
|
| 68 | 68 | */ |
| 69 | 69 | public function searchItem($suggestion) |
| 70 | 70 | { |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * Create a new class instance. |
| 47 | 47 | * |
| 48 | - * @return void |
|
| 48 | + * @return integer |
|
| 49 | 49 | */ |
| 50 | 50 | public function __construct() |
| 51 | 51 | { |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | * |
| 65 | 65 | * @param int $userId To store session id of the user |
| 66 | 66 | * |
| 67 | - * @return json or string |
|
| 67 | + * @return string or string |
|
| 68 | 68 | */ |
| 69 | 69 | public function loadSideBar($userId) |
| 70 | 70 | { |