Passed
Push — v6 ( acff9b...736453 )
by 光春
02:38
created
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] = $this->trimAll(trim($value));
138 138
             }
139 139
         }
Please login to merge, or discard this patch.