Passed
Push — v6 ( 20d195...68f5c0 )
by 光春
03:59
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/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/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.
src/service/ksyun/bin/exceptions/Exceptions.php 3 patches
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -3,32 +3,32 @@
 block discarded – undo
3 3
 	
4 4
 }
5 5
 class Ks3ServiceException extends Ks3ClientException{
6
-	private $requestId;
7
-	private $errorCode;
8
-	private $errorMessage;
9
-	private $resource;
10
-	private $statusCode;
11
-	public function __set($property_name, $value){
12
-		$this->$property_name=$value;
13
-	}
14
-	public function __get($property_name){
15
-		if(isset($this->$property_name))
16
-		{
17
-			return($this->$property_name);
18
-		}else
19
-		{
20
-			return(NULL);
21
-		}
22
-	}
23
-	public function __toString()
24
-  	{
25
-      		$message = get_class($this) . ': '
26
-      			."(errorCode:".$this->errorCode.";"
27
-      			."errorMessage:".$this->errorMessage.";"
28
-      			."resource:".$this->resource.";"
29
-      			."requestId:".$this->requestId.";"
30
-      			."statusCode:".$this->statusCode.")";
31
-		return $message;
32
-      	}
6
+    private $requestId;
7
+    private $errorCode;
8
+    private $errorMessage;
9
+    private $resource;
10
+    private $statusCode;
11
+    public function __set($property_name, $value){
12
+        $this->$property_name=$value;
13
+    }
14
+    public function __get($property_name){
15
+        if(isset($this->$property_name))
16
+        {
17
+            return($this->$property_name);
18
+        }else
19
+        {
20
+            return(NULL);
21
+        }
22
+    }
23
+    public function __toString()
24
+        {
25
+                $message = get_class($this) . ': '
26
+                    ."(errorCode:".$this->errorCode.";"
27
+                    ."errorMessage:".$this->errorMessage.";"
28
+                    ."resource:".$this->resource.";"
29
+                    ."requestId:".$this->requestId.";"
30
+                    ."statusCode:".$this->statusCode.")";
31
+        return $message;
32
+            }
33 33
 }
34 34
 ?>
35 35
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,18 +1,18 @@  discard block
 block discarded – undo
1 1
 <?php
2
-class Ks3ClientException extends RuntimeException{
2
+class Ks3ClientException extends RuntimeException {
3 3
 	
4 4
 }
5
-class Ks3ServiceException extends Ks3ClientException{
5
+class Ks3ServiceException extends Ks3ClientException {
6 6
 	private $requestId;
7 7
 	private $errorCode;
8 8
 	private $errorMessage;
9 9
 	private $resource;
10 10
 	private $statusCode;
11
-	public function __set($property_name, $value){
12
-		$this->$property_name=$value;
11
+	public function __set($property_name, $value) {
12
+		$this->$property_name = $value;
13 13
 	}
14
-	public function __get($property_name){
15
-		if(isset($this->$property_name))
14
+	public function __get($property_name) {
15
+		if (isset($this->$property_name))
16 16
 		{
17 17
 			return($this->$property_name);
18 18
 		}else
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 	}
23 23
 	public function __toString()
24 24
   	{
25
-      		$message = get_class($this) . ': '
25
+      		$message = get_class($this).': '
26 26
       			."(errorCode:".$this->errorCode.";"
27 27
       			."errorMessage:".$this->errorMessage.";"
28 28
       			."resource:".$this->resource.";"
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 		if(isset($this->$property_name))
16 16
 		{
17 17
 			return($this->$property_name);
18
-		}else
18
+		} else
19 19
 		{
20 20
 			return(NULL);
21 21
 		}
Please login to merge, or discard this patch.
src/service/ksyun/bin/core/Headers.php 2 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -1,29 +1,29 @@
 block discarded – undo
1 1
 <?php
2 2
 class Headers{
3
-	static $Date = "Date";
4
-	static $Authorization = "Authorization";
5
-	static $ContentMd5 = "Content-MD5";
6
-	static $ContentType = "Content-Type";
7
-	static $ContentLength="Content-Length";
8
-	static $Acl = "x-kss-acl";
9
-	static $CopySource = "x-kss-copy-source";
10
-	static $ETag = "ETag";
11
-	static $TaskID = "TaskID";
12
-	static $Range = "Range";
13
-	static $AsynchronousProcessingList = "kss-async-process";
14
-	static $NotifyURL = "kss-notifyurl";
15
-	static $XKssCallbackUrl = "x-kss-callbackurl";
16
-	static $XKssCallbackBody = "x-kss-callbackbody";
17
-	static $UserAgent = "User-Agent";
18
-	static $SSEAlgm = "x-kss-server-side-encryption";
19
-	static $SSEKMSId = "x-kss-server-side-encryption-kss-kms-key-id";
20
-	static $SSECAlgm = "x-kss-server-side-encryption-customer-algorithm";
21
-	static $SSECKey = "x-kss-server-side-encryption-customer-key";
22
-	static $SSECMD5 = "x-kss-server-side-encryption-customer-key-MD5";
3
+    static $Date = "Date";
4
+    static $Authorization = "Authorization";
5
+    static $ContentMd5 = "Content-MD5";
6
+    static $ContentType = "Content-Type";
7
+    static $ContentLength="Content-Length";
8
+    static $Acl = "x-kss-acl";
9
+    static $CopySource = "x-kss-copy-source";
10
+    static $ETag = "ETag";
11
+    static $TaskID = "TaskID";
12
+    static $Range = "Range";
13
+    static $AsynchronousProcessingList = "kss-async-process";
14
+    static $NotifyURL = "kss-notifyurl";
15
+    static $XKssCallbackUrl = "x-kss-callbackurl";
16
+    static $XKssCallbackBody = "x-kss-callbackbody";
17
+    static $UserAgent = "User-Agent";
18
+    static $SSEAlgm = "x-kss-server-side-encryption";
19
+    static $SSEKMSId = "x-kss-server-side-encryption-kss-kms-key-id";
20
+    static $SSECAlgm = "x-kss-server-side-encryption-customer-algorithm";
21
+    static $SSECKey = "x-kss-server-side-encryption-customer-key";
22
+    static $SSECMD5 = "x-kss-server-side-encryption-customer-key-MD5";
23 23
 
24
-	static $SSECSourceAlgm = "x-kss-copy-source-server-side-encryption-customer-algorithm";
25
-	static $SSECSourceKey = "x-kss-copy-source-server-side-encryption-customer-key";
26
-	static $SSECSourceMD5 = "x-kss-copy-source-server-side-encryption-customer-key-MD5";
24
+    static $SSECSourceAlgm = "x-kss-copy-source-server-side-encryption-customer-algorithm";
25
+    static $SSECSourceKey = "x-kss-copy-source-server-side-encryption-customer-key";
26
+    static $SSECSourceMD5 = "x-kss-copy-source-server-side-encryption-customer-key-MD5";
27 27
 
28 28
 }
29 29
 ?>
30 30
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2
-class Headers{
2
+class Headers {
3 3
 	static $Date = "Date";
4 4
 	static $Authorization = "Authorization";
5 5
 	static $ContentMd5 = "Content-MD5";
6 6
 	static $ContentType = "Content-Type";
7
-	static $ContentLength="Content-Length";
7
+	static $ContentLength = "Content-Length";
8 8
 	static $Acl = "x-kss-acl";
9 9
 	static $CopySource = "x-kss-copy-source";
10 10
 	static $ETag = "ETag";
Please login to merge, or discard this patch.