@@ -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 | { |