Skip to content

Commit b33f6b3

Browse files
committed
support phpdoc
1 parent 9285787 commit b33f6b3

File tree

5 files changed

+4
-13
lines changed

5 files changed

+4
-13
lines changed

plugins/SConfig.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
| Supports: http://www.slightphp.com |
1414
+-----------------------------------------------------------------------+
1515
}}}*/
16+
/**
17+
* @package SlightPHP
18+
*/
1619
class SConfig{
1720
public static $CACHE=true;
1821
/**

plugins/SRedis.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
/**
1818
* @package SlightPHP
19-
* SRedis is base on php5-redis(phpredis https://github.com/phpredis/phpredis)
20-
* use RedisArray , docs is on https://github.com/phpredis/phpredis/blob/master/arrays.markdown#readme
2119
*/
2220
if(!defined("SLIGHTPHP_PLUGINS_DIR"))define("SLIGHTPHP_PLUGINS_DIR",dirname(__FILE__));
2321
require_once(SLIGHTPHP_PLUGINS_DIR."/SConfig.php");

plugins/SThumbnail.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,10 @@
1515
}}}*/
1616

1717
/**
18-
* @deprecated
19-
* recommend https://github.com/Intervention/image
18+
* @package SlightPHP
2019
*/
2120

22-
2321
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR."thumbnail/class.WMThumbnail.inc.php");
24-
/**
25-
* @package SlightPHP
26-
*/
2722
if (!function_exists('imageflip')) {
2823
define('IMG_FLIP_HORIZONTAL', 0);
2924
define('IMG_FLIP_VERTICAL', 1);

plugins/cache/Cache_File.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ function get($key){
8585
flock($fp,LOCK_UN);
8686
fclose($fp);
8787
return unserialize($data);
88-
}else{
89-
//过期了,应该删除这个文件,但为了性能考虑,不删除
9088
}
9189
}
9290
flock($fp,LOCK_UN);

plugins/captcha/captcha.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22
/**
3-
* Script para la generación de CAPTCHAS
4-
*
53
* @author Jose Rodriguez <jose.rodriguez@exec.cl>
64
* @license GPLv3
75
* @link http://code.google.com/p/cool-php-captcha
@@ -401,7 +399,6 @@ protected function WaveImage() {
401399
* Reduce the image to the final size
402400
*/
403401
protected function ReduceImage() {
404-
// Reduzco el tamaño de la imagen
405402
$imResampled = imagecreatetruecolor($this->width, $this->height);
406403
imagecopyresampled($imResampled, $this->im,
407404
0, 0, 0, 0,

0 commit comments

Comments
 (0)