@@ -44,7 +44,7 @@ |
||
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 | } |
@@ -34,6 +34,6 @@ |
||
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 | } |
@@ -19,7 +19,7 @@ |
||
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 | // 淘宝客 |
@@ -17,7 +17,7 @@ |
||
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 |
@@ -17,7 +17,7 @@ discard block |
||
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 |
||
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>"; |
@@ -17,7 +17,7 @@ |
||
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 |
@@ -105,7 +105,7 @@ |
||
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 | ]) |
@@ -50,7 +50,7 @@ |
||
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 |
@@ -84,7 +84,7 @@ |
||
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 | } |