Completed
Push — master ( 74cbb3...b198ee )
by Ankit
04:27
created
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 2 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 namespace ChatApp;
14 14
 
15 15
 require_once dirname(__DIR__).'/vendor/autoload.php';
16
-use ChatApp\Session;
17 16
 use Dotenv\Dotenv;
18 17
 $dotenv = new Dotenv(dirname(__DIR__));
19 18
 $dotenv->load();
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.
src/Search.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 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
     {
Please login to merge, or discard this patch.
src/SideBar.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
tests/TestAll.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
         $currentId = Session::get('start');
195 195
         Session::forget('start');
196 196
 
197
-        $msg =(object)[
197
+        $msg = (object)[
198 198
             "name" => $userId,
199 199
             "reply" => "Hello World",
200 200
             "userId" => $currentId
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         $output = $obReply->replyTo($msg);
205 205
         $this->assertEquals("Messages is sent", $output);
206 206
 
207
-        $msg =(object)[
207
+        $msg = (object)[
208 208
             "name" => $currentId,
209 209
             "reply" => "Hello World",
210 210
             "userId" => $userId
Please login to merge, or discard this patch.