Completed
Push — master ( 695367...87fcf7 )
by sabaku
04:01
created
src/Upyun/Signature.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,15 +10,15 @@  discard block
 block discarded – undo
10 10
     /**
11 11
      * 获取分块上传接口的签名
12 12
      */
13
-    const SIGN_MULTIPART     = 1;
13
+    const SIGN_MULTIPART = 1;
14 14
     /**
15 15
      * 生成视频处理接口的签名
16 16
      */
17
-    const SIGN_VIDEO         = 2;
17
+    const SIGN_VIDEO = 2;
18 18
     /**
19 19
      * 生成视频处理接口的签名(不需要操作员时使用)
20 20
      */
21
-    const SIGN_VIDEO_NO_OPERATOR   = 3;
21
+    const SIGN_VIDEO_NO_OPERATOR = 3;
22 22
 
23 23
     /**
24 24
      * 获取 Header 签名需要的请求头
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $headers = array(
41 41
             'Authorization' => $sign,
42 42
             'Date' => $gmtDate,
43
-            'User-agent' => 'Php-Sdk/' . $bucketConfig->getVersion()
43
+            'User-agent' => 'Php-Sdk/'.$bucketConfig->getVersion()
44 44
         );
45 45
         return $headers;
46 46
     }
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         return array(
61 61
             'Authorization' => "UpYun {$bucketConfig->bucketName}:{$bucketConfig->operatorName}:$sign",
62 62
             'Date' => $gmtDate,
63
-            'User-agent' => 'Php-Sdk/' . $bucketConfig->getVersion() . ' (purge api)'
63
+            'User-agent' => 'Php-Sdk/'.$bucketConfig->getVersion().' (purge api)'
64 64
         );
65 65
     }
66 66
 
@@ -93,6 +93,6 @@  discard block
 block discarded – undo
93 93
             $data[] = $contentMd5;
94 94
         }
95 95
         $signature = base64_encode(hash_hmac('sha1', implode('&', $data), $bucketConfig->operatorPassword, true));
96
-        return 'UPYUN ' . $bucketConfig->operatorName . ':' . $signature;
96
+        return 'UPYUN '.$bucketConfig->operatorName.':'.$signature;
97 97
     }
98 98
 }
Please login to merge, or discard this patch.