代码规范

This commit is contained in:
thinkphp
2016-07-25 10:07:36 +08:00
parent c639de37e2
commit dd0e3cdbf2

View File

@@ -163,7 +163,7 @@ class Captcha
$this->fontttf = $ttfPath . $this->fontttf; $this->fontttf = $ttfPath . $this->fontttf;
if ($this->useImgBg) { if ($this->useImgBg) {
$this->_background(); $this->background();
} }
if ($this->useNoise) { if ($this->useNoise) {
@@ -288,7 +288,7 @@ class Captcha
* 绘制背景图片 * 绘制背景图片
* 注:如果验证码输出图片比较大,将占用比较多的系统资源 * 注:如果验证码输出图片比较大,将占用比较多的系统资源
*/ */
private function _background() private function background()
{ {
$path = __DIR__ . '/../assets/bgs/'; $path = __DIR__ . '/../assets/bgs/';
$dir = dir($path); $dir = dir($path);