Skip to content

Commit 73d68e5

Browse files
committed
cmd => method
1 parent 1de7a5c commit 73d68e5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Qiniu/Processing/PersistentFop.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,9 @@ public function __call($method, $args)
7373
{
7474

7575
if (!in_array($method, self::$pfops)) {
76-
throw new \InvalidArgumentException("pfop {$method} isn't support");
76+
throw new \InvalidArgumentException("pfop {$method} isn't supported");
7777
}
7878
$key = $args[0];
79-
$cmd = $method;
8079
$mod = null;
8180
if (count($args)>1) {
8281
$mod = $args[1];
@@ -97,7 +96,7 @@ public function __call($method, $args)
9796
$target_key = $args[4];
9897
}
9998

100-
$pfop = Operation::buildOp($cmd, $mod, $options);
99+
$pfop = Operation::buildOp($method, $mod, $options);
101100
if ($target_bucket != null) {
102101
$pfop = Operation::saveas($pfop, $target_bucket, $target_key);
103102
}

0 commit comments

Comments
 (0)