Completed
Push — master ( 75d991...74cbb3 )
by Ankit
03:12
created
views/validate_login.php 1 patch
Braces   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,8 +14,9 @@
 block discarded – undo
14 14
         'passLogin' => $password
15 15
     );
16 16
     $result = $obLogin->authLogin($data);
17
-    if(isset($result))
18
-        echo $result;
19
-    else
20
-        echo json_encode([]);
21
-}
22 17
\ No newline at end of file
18
+    if(isset($result)) {
19
+            echo $result;
20
+    } else {
21
+            echo json_encode([]);
22
+    }
23
+    }
23 24
\ No newline at end of file
Please login to merge, or discard this patch.
views/validate_register.php 1 patch
Braces   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,11 +20,12 @@
 block discarded – undo
20 20
 		'mob' => $mob
21 21
 	);
22 22
 	$result = $obRegister->authRegister($data);
23
-	if(isset($result))
24
-		echo $result;
25
-	else
26
-		echo json_encode([]);
27
-}
23
+	if(isset($result)) {
24
+			echo $result;
25
+	} else {
26
+			echo json_encode([]);
27
+	}
28
+	}
28 29
 
29 30
 
30 31
 
Please login to merge, or discard this patch.
views/message.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -168,8 +168,7 @@
 block discarded – undo
168 168
 </html>
169 169
 
170 170
 <?php
171
-}
172
-else{
171
+} else{
173 172
   header('Location:'. getenv('APP_URL')."/index.php");
174 173
 }
175 174
 ?>
Please login to merge, or discard this patch.
src/Chat.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Compose.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Conversation.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,10 +65,10 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Login.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Receiver.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,10 +57,10 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Register.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.