Completed
Push — master ( d60caa...394d07 )
by Ankit
02:48
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.
src/Session.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -10,6 +10,9 @@
 block discarded – undo
10 10
         $_SESSION[$key] = $value;
11 11
     }
12 12
 
13
+    /**
14
+     * @param string $key
15
+     */
13 16
     public static function get($key){
14 17
         return (isset($_SESSION[$key]) ? $_SESSION[$key] : null);
15 18
     }
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   +11 added lines patch added patch discarded remove patch
@@ -25,6 +25,9 @@  discard block
 block discarded – undo
25 25
         Online::setOnlineStatus($conn->userId);
26 26
     }
27 27
 
28
+    /**
29
+     * @param ConnectionInterface $conn
30
+     */
28 31
     public function setID($conn) {
29 32
         session_id($conn->WebSocket->request->getCookies()['PHPSESSID']);
30 33
         @session_start();
@@ -117,11 +120,19 @@  discard block
 block discarded – undo
117 120
         return $obSidebar->loadSideBar($data);
118 121
     }
119 122
 
123
+    /**
124
+     * @param string $data
125
+     * @param boolean $para
126
+     */
120 127
     public function onConversation($data, $para) {
121 128
         $obConversation = new Conversation();
122 129
         return $obConversation->conversationLoad($data, $para);
123 130
     }
124 131
 
132
+    /**
133
+     * @param string $data
134
+     * @param boolean $para
135
+     */
125 136
     public function onReceiver($data, $para) {
126 137
         $obReceiver = new Receiver();
127 138
         return $obReceiver->receiverLoad($data, $para);
Please login to merge, or discard this patch.
src/Register.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -94,6 +94,9 @@
 block discarded – undo
94 94
     }
95 95
 
96 96
 
97
+    /**
98
+     * @param string $value
99
+     */
97 100
     public function onError($key, $value)
98 101
     {
99 102
         $this->flag = 1;
Please login to merge, or discard this patch.
src/Reply.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -75,6 +75,11 @@
 block discarded – undo
75 75
         return "Failed";
76 76
     }
77 77
 
78
+    /**
79
+     * @param string $identifier
80
+     * @param string $reply
81
+     * @param string $time
82
+     */
78 83
     public function updateMessages($query, $identifier, $reply, $userId, $time)
79 84
     {
80 85
         if ($result = $this->connect->query($query)) {
Please login to merge, or discard this patch.