Passed
Push — master ( dd00f5...d5a3e0 )
by test
03:16
created
src/TencentIM/Operate/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function register(Container $app)
20 20
     {
21
-        $app['operate'] = function ($app) {
21
+        $app['operate'] = function($app) {
22 22
             return new Client($app);
23 23
         };
24 24
     }
Please login to merge, or discard this patch.
src/TencentIM/Profile/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function register(Container $app)
20 20
     {
21
-        $app['profile'] = function ($app) {
21
+        $app['profile'] = function($app) {
22 22
             return new Client($app);
23 23
         };
24 24
     }
Please login to merge, or discard this patch.
src/TencentIM/Group/MessageClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
     {
100 100
         $params = [
101 101
             'GroupId' => $groupId,
102
-            'MsgSeqList' => array_map(function ($item) {
102
+            'MsgSeqList' => array_map(function($item) {
103 103
                 return ['MsgSeq' => $item];
104 104
             }, $msgSeqList)
105 105
         ];
Please login to merge, or discard this patch.
src/TencentIM/Group/ServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,22 +18,22 @@
 block discarded – undo
18 18
      */
19 19
     public function register(Container $app)
20 20
     {
21
-        $app['group'] = function ($app) {
21
+        $app['group'] = function($app) {
22 22
             return new Group($app);
23 23
         };
24
-        $app['group.client'] = function ($app) {
24
+        $app['group.client'] = function($app) {
25 25
             return new Client($app);
26 26
         };
27
-        $app['group.member'] = function ($app) {
27
+        $app['group.member'] = function($app) {
28 28
             return new MemberClient($app);
29 29
         };
30
-        $app['group.operate'] = function ($app) {
30
+        $app['group.operate'] = function($app) {
31 31
             return new OperateClient($app);
32 32
         };
33
-        $app['group.message'] = function ($app) {
33
+        $app['group.message'] = function($app) {
34 34
             return new MessageClient($app);
35 35
         };
36
-        $app['group.import'] = function ($app) {
36
+        $app['group.import'] = function($app) {
37 37
             return new ImportClient($app);
38 38
         };
39 39
     }
Please login to merge, or discard this patch.
src/TencentIM/Speak/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function register(Container $app)
20 20
     {
21
-        $app['speak'] = function ($app) {
21
+        $app['speak'] = function($app) {
22 22
             return new Client($app);
23 23
         };
24 24
     }
Please login to merge, or discard this patch.
src/TencentIM/SingleChat/ServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
      */
19 19
     public function register(Container $app)
20 20
     {
21
-        $app['single_chat'] = function ($app) {
21
+        $app['single_chat'] = function($app) {
22 22
             return new Client($app);
23 23
         };
24 24
     }
Please login to merge, or discard this patch.
src/Kernel/Support/Arr.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -79,9 +79,9 @@  discard block
 block discarded – undo
79 79
 
80 80
         foreach ($array as $key => $value) {
81 81
             if (is_array($value) && !empty($value)) {
82
-                $results = array_merge($results, static::dot($value, $prepend . $key . '.'));
82
+                $results = array_merge($results, static::dot($value, $prepend.$key.'.'));
83 83
             } else {
84
-                $results[$prepend . $key] = $value;
84
+                $results[$prepend.$key] = $value;
85 85
             }
86 86
         }
87 87
 
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      */
175 175
     public static function flatten(array $array, $depth = INF)
176 176
     {
177
-        return array_reduce($array, function ($result, $item) use ($depth) {
177
+        return array_reduce($array, function($result, $item) use ($depth) {
178 178
             $item = $item instanceof Collection ? $item->all() : $item;
179 179
 
180 180
             if (!is_array($item)) {
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     {
198 198
         $original = &$array;
199 199
 
200
-        $keys = (array)$keys;
200
+        $keys = (array) $keys;
201 201
 
202 202
         if (0 === count($keys)) {
203 203
             return;
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
             return false;
275 275
         }
276 276
 
277
-        $keys = (array)$keys;
277
+        $keys = (array) $keys;
278 278
 
279 279
         if (empty($array)) {
280 280
             return false;
@@ -329,7 +329,7 @@  discard block
 block discarded – undo
329 329
      */
330 330
     public static function only(array $array, $keys): array
331 331
     {
332
-        return array_intersect_key($array, array_flip((array)$keys));
332
+        return array_intersect_key($array, array_flip((array) $keys));
333 333
     }
334 334
 
335 335
     /**
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 
391 391
         $results = [];
392 392
 
393
-        foreach ((array)$keys as $key) {
393
+        foreach ((array) $keys as $key) {
394 394
             $results[] = $array[$key];
395 395
         }
396 396
 
Please login to merge, or discard this patch.
src/Kernel/Helpers.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,8 @@
 block discarded – undo
10 10
  */
11 11
 function msgRandom($length = 5): int
12 12
 {
13
-    $start = (int)str_pad(1, $length, '0', STR_PAD_RIGHT);
14
-    $end = (int)str_pad(9, $length, '9', STR_PAD_RIGHT);
13
+    $start = (int) str_pad(1, $length, '0', STR_PAD_RIGHT);
14
+    $end = (int) str_pad(9, $length, '9', STR_PAD_RIGHT);
15 15
 
16 16
     return mt_rand($start, $end);
17 17
 }
Please login to merge, or discard this patch.