Passed
Push — master ( 1b6703...425d4d )
by Mohammad
04:36
created
src/Traits/WebSocketMessagesManager.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
      */
73 73
     function sendBack($data)
74 74
     {
75
-       $this->sendToWebSocketUser($this->conn,$data);
75
+        $this->sendToWebSocketUser($this->conn,$data);
76 76
     }
77 77
 
78 78
     /**
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * @param $request
23 23
      * @param ConnectionInterface $from
24
-     * @param $error
24
+     * @param string $error
25 25
      * @throws WebSocketException
26 26
      */
27 27
     function error($request,ConnectionInterface $from, $error)
@@ -101,6 +101,9 @@  discard block
 block discarded – undo
101 101
         ];
102 102
     }
103 103
 
104
+    /**
105
+     * @param integer $user_id
106
+     */
104 107
     function isOnline($user_id)
105 108
     {
106 109
         if(array_key_exists($user_id,$this->userAuthSocketMapper))
Please login to merge, or discard this patch.
src/Traits/Validation.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     /**
40 40
      * Validate the given request with the given rules.
41 41
      *
42
-     * @param  object  $request
42
+     * @param  Collection  $request
43 43
      * @param  array  $rules
44 44
      * @param  array  $messages
45 45
      * @param  array  $customAttributes
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      * @throws \Illuminate\Validation\ValidationException
49 49
      */
50 50
     public function validate($request, array $rules,
51
-                             array $messages = [], array $customAttributes = [])
51
+                                array $messages = [], array $customAttributes = [])
52 52
     {
53 53
         if($request instanceof Collection)
54 54
             $request = $request->toArray();
Please login to merge, or discard this patch.
src/Objects/Clients/Client.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      */
46 46
     function onClose(string $route)
47 47
     {
48
-       array_push($this->onCloseRoutes,$route);
48
+        array_push($this->onCloseRoutes,$route);
49 49
 
50 50
         return $this;
51 51
     }
Please login to merge, or discard this patch.