Passed
Push — v6 ( fbfd37...6aa863 )
by 光春
03:18
created
src/command/Install.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         $this->name = trim($input->getArgument('name'));
45 45
         if (empty($this->name)) {
46 46
             $this->output->writeln('name of online installation cannot be empty');
47
-        } else {
47
+        }else {
48 48
             $this->output->writeln("The specified module {$this->name} is not configured with installation rules");
49 49
         }
50 50
     }
Please login to merge, or discard this patch.
src/command/Version.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
 
35 35
     protected function execute(Input $input, Output $output)
36 36
     {
37
-        $output->writeln('ThinkPHP ' . App::VERSION);
37
+        $output->writeln('ThinkPHP '.App::VERSION);
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
src/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 
20 20
 return [
21 21
     // IP数据库文件存放位置
22
-    'ip_path' => app()->getRuntimePath() . 'dtapp/ip/',
22
+    'ip_path' => app()->getRuntimePath().'dtapp/ip/',
23 23
     // 淘宝
24 24
     'taobao' => [
25 25
         // 淘宝客
Please login to merge, or discard this patch.
src/helper/Dates.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\helper;
23 23
 
Please login to merge, or discard this patch.
src/helper/Xmls.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
 
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
         $xml = "<xml>";
45 45
         foreach ($values as $key => $val) {
46 46
             if (is_array($val)) {
47
-                $xml .= "<" . $key . ">" . $this->toXml($val) . "</" . $key . ">";
48
-            } else if (is_numeric($val)) {
49
-                $xml .= "<" . $key . ">" . $val . "</" . $key . ">";
50
-            } else {
51
-                $xml .= "<" . $key . "><![CDATA[" . $val . "]]></" . $key . ">";
47
+                $xml .= "<".$key.">".$this->toXml($val)."</".$key.">";
48
+            }else if (is_numeric($val)) {
49
+                $xml .= "<".$key.">".$val."</".$key.">";
50
+            }else {
51
+                $xml .= "<".$key."><![CDATA[".$val."]]></".$key.">";
52 52
             }
53 53
         }
54 54
         $xml .= "</xml>";
Please login to merge, or discard this patch.
src/facade/Randoms.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/exception/ThinkException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
                         'domain' => request()->domain(),
106 106
                         'url' => request()->url(),
107 107
                         'node' => config('dtapp.exception.wechat.node', ''),
108
-                        'info' => "ServerIp:" . $ip . ";CdnIp:" . $_SERVER['REMOTE_ADDR'] . ";ClientIp:" . get_ip(),
108
+                        'info' => "ServerIp:".$ip.";CdnIp:".$_SERVER['REMOTE_ADDR'].";ClientIp:".get_ip(),
109 109
                         'ip' => $ipinfo['location_all'],
110 110
                         'error' => base64_encode($msg)
111 111
                     ])
Please login to merge, or discard this patch.
src/service/Ip/IpIpService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         if (empty($this->ipPath)) {
51 51
             throw new DtaException('请检查配置文件是否配置了IP数据库文件存放位置');
52 52
         }
53
-        $this->reader = new IpIpReader($this->ipPath . 'ipipfree.ipdb');
53
+        $this->reader = new IpIpReader($this->ipPath.'ipipfree.ipdb');
54 54
         parent::__construct($app);
55 55
     }
56 56
 
Please login to merge, or discard this patch.
src/service/aliyun/OssService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
         try {
85 85
             $ossClient = new OssClient($this->accessKeyId, $this->accessKeySecret, $this->endpoint);
86 86
             $ossClient->uploadFile($this->bucket, $object, $filePath);
87
-            return config('dtapp.aliyun.oss.url', '') . $object;
87
+            return config('dtapp.aliyun.oss.url', '').$object;
88 88
         } catch (OssException $e) {
89 89
             return $e->getMessage();
90 90
         }
Please login to merge, or discard this patch.