Passed
Push — master ( 8cb2b9...49d339 )
by ma
02:23
created
src/UrlTool.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 /**
4 4
  * Url
5 5
  */
6
-class UrlTool{
6
+class UrlTool {
7 7
 
8 8
     /**
9 9
      * 获取url中主域名
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
         if (!$host) {
16 16
             return '';
17 17
         }
18
-        if (in_array($host,['127.0.0.1','localhost'])) {
18
+        if (in_array($host, ['127.0.0.1', 'localhost'])) {
19 19
             return '';
20 20
         }
21 21
 
Please login to merge, or discard this patch.