Skip to content

Commit b0f70f7

Browse files
committed
fix scrutinizer warnning
1 parent 94a2a85 commit b0f70f7

File tree

3 files changed

+3
-30
lines changed

3 files changed

+3
-30
lines changed

demo/pfop1.php

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/Qiniu/Etag.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static function sum($filename)
5252
fclose($fhandler);
5353
return array(null, $err);
5454
}
55-
list($sha1Code, $err) = calSha1($fdata);
55+
list($sha1Code, ) = calSha1($fdata);
5656
$sha1Buf = array_merge($sha1Buf, $sha1Code);
5757
} else {
5858
array_push($sha1Buf, 0x96);
@@ -67,7 +67,7 @@ public static function sum($filename)
6767
$sha1BlockBuf = array_merge($sha1BlockBuf, $sha1Code);
6868
}
6969
$tmpData = self::packArray('C*', $sha1BlockBuf);
70-
list($sha1Final, $_err) = self::calcSha1($tmpData);
70+
list($sha1Final, ) = self::calcSha1($tmpData);
7171
$sha1Buf = array_merge($sha1Buf, $sha1Final);
7272
}
7373
$etag = \Qiniu\base64_urlSafeEncode(self::packArray('C*', $sha1Buf));

src/Qiniu/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function base64_urlSafeEncode($data)
5353
/**
5454
* 对提供的urlsafe的base64编码的数据进行解码
5555
*
56-
* @param string $data 待解码的数据,一般为字符串
56+
* @param string $str 待解码的数据,一般为字符串
5757
*
5858
* @return string 解码后的字符串
5959
*/

0 commit comments

Comments
 (0)