Passed
Push — v6 ( e4a554...de8df7 )
by 光春
03:00
created
src/facade/Xmls.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 // | Packagist 地址 :https://packagist.org/packages/liguangchun/think-library
18 18
 // +----------------------------------------------------------------------
19 19
 
20
-declare (strict_types=1);
20
+declare(strict_types=1);
21 21
 
22 22
 namespace DtApp\ThinkLibrary\facade;
23 23
 
Please login to merge, or discard this patch.
src/facade/Returns.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 // | Packagist 地址 :https://packagist.org/packages/liguangchun/think-library
18 18
 // +----------------------------------------------------------------------
19 19
 
20
-declare (strict_types=1);
20
+declare(strict_types=1);
21 21
 
22 22
 namespace DtApp\ThinkLibrary\facade;
23 23
 
Please login to merge, or discard this patch.
src/facade/Times.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 // | Packagist 地址 :https://packagist.org/packages/liguangchun/think-library
18 18
 // +----------------------------------------------------------------------
19 19
 
20
-declare (strict_types=1);
20
+declare(strict_types=1);
21 21
 
22 22
 namespace DtApp\ThinkLibrary\facade;
23 23
 
Please login to merge, or discard this patch.
src/helper/Arrays.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 // | Packagist 地址 :https://packagist.org/packages/liguangchun/think-library
18 18
 // +----------------------------------------------------------------------
19 19
 
20
-declare (strict_types=1);
20
+declare(strict_types=1);
21 21
 
22 22
 namespace DtApp\ThinkLibrary\helper;
23 23
 
@@ -60,14 +60,14 @@  discard block
 block discarded – undo
60 60
         if (!isset($array) || empty($array)) {
61 61
             return $arrRet;
62 62
         }
63
-        $iCount = count($array) / $num;
63
+        $iCount = count($array)/$num;
64 64
         if (!is_int($iCount)) {
65 65
             $iCount = ceil($iCount);
66
-        } else {
66
+        }else {
67 67
             $iCount += 1;
68 68
         }
69 69
         for ($i = 0; $i < $iCount; ++$i) {
70
-            $arrInfos = array_slice($array, $i * $num, $num);
70
+            $arrInfos = array_slice($array, $i*$num, $num);
71 71
             if (empty($arrInfos)) {
72 72
                 continue;
73 73
             }
@@ -109,11 +109,11 @@  discard block
 block discarded – undo
109 109
             foreach ($arrays as $array) {
110 110
                 if (is_array($array)) {
111 111
                     $key_arrays[] = $array[$sort_key];
112
-                } else {
112
+                }else {
113 113
                     return [];
114 114
                 }
115 115
             }
116
-        } else {
116
+        }else {
117 117
             return [];
118 118
         }
119 119
         array_multisort($key_arrays, $sort_order, $sort_type, $arrays);
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         foreach ($arr as $key => $value) {
134 134
             if (is_array($value)) {
135 135
                 $arr[$key] = $this->TrimArray($value);
136
-            } else {
136
+            }else {
137 137
                 $arr[$key] = (new Strings)->trimAll(trim($value));
138 138
             }
139 139
         }
Please login to merge, or discard this patch.
src/helper/UnIqIds.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 // | Packagist 地址 :https://packagist.org/packages/liguangchun/think-library
18 18
 // +----------------------------------------------------------------------
19 19
 
20
-declare (strict_types=1);
20
+declare(strict_types=1);
21 21
 
22 22
 namespace DtApp\ThinkLibrary\helper;
23 23
 
@@ -48,10 +48,10 @@  discard block
 block discarded – undo
48 48
         if (intval($type) === 3) {
49 49
             $chars = "{$numbs}{$chars}";
50 50
         }
51
-        $string = $prefix . $chars[rand(1, strlen($chars) - 1)];
51
+        $string = $prefix.$chars[rand(1, strlen($chars)-1)];
52 52
         if (isset($chars)) {
53 53
             while (strlen($string) < $size) {
54
-                $string .= $chars[rand(0, strlen($chars) - 1)];
54
+                $string .= $chars[rand(0, strlen($chars)-1)];
55 55
             }
56 56
         }
57 57
         return $string;
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         if ($size < 14) {
69 69
             $size = 14;
70 70
         }
71
-        $string = $prefix . date('Ymd') . (date('H') + date('i')) . date('s');
71
+        $string = $prefix.date('Ymd').(date('H')+date('i')).date('s');
72 72
         while (strlen($string) < $size) {
73 73
             $string .= rand(0, 9);
74 74
         }
@@ -83,11 +83,11 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function number($size = 12, $prefix = ''): string
85 85
     {
86
-        $time = time() . '';
86
+        $time = time().'';
87 87
         if ($size < 10) {
88 88
             $size = 10;
89 89
         }
90
-        $string = $prefix . ($time[0] . $time[1]) . substr($time, 2) . rand(0, 9);
90
+        $string = $prefix.($time[0].$time[1]).substr($time, 2).rand(0, 9);
91 91
         while (strlen($string) < $size) {
92 92
             $string .= rand(0, 9);
93 93
         }
Please login to merge, or discard this patch.