Passed
Push — master ( 8d6d1f...381e61 )
by kill
02:41
created
function.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     if (isset($arr['status']) && $type == 2) {
42 42
         $ret=$arr;
43
-    }
44
-    else {
43
+    } else {
45 44
         $ret['status']=$type;
46 45
         $ret['data']=$arr;
47 46
     }
@@ -323,8 +322,7 @@  discard block
 block discarded – undo
323 322
         if ($filters) {
324 323
             if (is_string($filters)) {
325 324
                 $filters=explode(',', $filters);
326
-            }
327
-            else if (is_array($filters)) {
325
+            } else if (is_array($filters)) {
328 326
                 foreach ($filters as $filter) {
329 327
                     $data=array_map_recursive($filter, $data); // 参数过滤
330 328
                 }
Please login to merge, or discard this patch.
core/Route.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,8 +98,7 @@
 block discarded – undo
98 98
             }
99 99
         } catch (\ReflectionException $e) {
100 100
             return false;
101
-        }
102
-        catch (\InvalidArgumentException $e) {
101
+        } catch (\InvalidArgumentException $e) {
103 102
             return false;
104 103
         }
105 104
         return true;
Please login to merge, or discard this patch.