规范代码

This commit is contained in:
thinkphp
2016-12-24 21:37:05 +08:00
parent 81bde424be
commit 43b364e286
45 changed files with 106 additions and 195 deletions

View File

@@ -15,10 +15,9 @@ use think\Process;
class Builder
{
private $arguments;
private $cwd;
private $env = null;
private $env = null;
private $input;
private $timeout = 60;
private $options = [];
@@ -155,7 +154,7 @@ class Builder
return $this;
}
$timeout = (float)$timeout;
$timeout = (float) $timeout;
if ($timeout < 0) {
throw new \InvalidArgumentException('The timeout value must be a valid positive integer or float number.');
@@ -231,4 +230,4 @@ class Builder
return $process;
}
}
}