diff --git a/app/AutoReseed.php b/app/AutoReseed.php index dbddb79..b564e06 100644 --- a/app/AutoReseed.php +++ b/app/AutoReseed.php @@ -1,7 +1,5 @@ '/api/add', @@ -71,24 +42,13 @@ class AutoReseed 'move' => '/api/move', 'login' => '/user/login', ); - /** - * curl - */ + // curl public static $curl = null; - /** - * 退出状态码 - * @var int - */ + // 退出状态码 public static $ExitCode = 0; - /** - * 客户端转移做种 - * @var array - */ + // 客户端转移做种 public static $move = null; - /** - * 微信消息体 - * @var array - */ + // 微信消息体 public static $wechatMsg = array( 'hashCount' => 0, // 提交给服务器的hash总数 'sitesCount' => 0, // 可辅种站点总数 @@ -99,10 +59,8 @@ class AutoReseed 'reseedSkip' => 0, // 跳过:因未设置passkey,而跳过 'reseedPass' => 0, // 忽略:因上次成功添加、存在缓存,而跳过 ); - /** - * 初始化 - * @return void - */ + + // 初始化 public static function init() { global $configALL; @@ -177,8 +135,6 @@ class AutoReseed } /** * 连接远端RPC服务器 - * - * @param string * @return bool */ public static function links() diff --git a/app/Client/Transmission/Transmission.php b/app/Client/Transmission/Transmission.php index 4ab70b7..71bf719 100644 --- a/app/Client/Transmission/Transmission.php +++ b/app/Client/Transmission/Transmission.php @@ -26,7 +26,7 @@ * PHP Class support (PHP 5) (PHP 4 might work, untested) */ -namespace IYUU\Client\Transmission; +namespace IYUU\Client\transmission; use IYUU\Client\AbstractClient; @@ -47,7 +47,7 @@ if (version_compare(PHP_VERSION, '5.2.10', '<')) { * * */ -class Transmission extends AbstractClient +class transmission extends AbstractClient { /** * User agent used in all http communication @@ -341,7 +341,7 @@ class Transmission extends AbstractClient { return $this->add_file($torrent_location, $save_path, $extra_options); } - + /** * Add a torrent using the raw torrent data * diff --git a/app/Client/Transmission/TransmissionRPCException.php b/app/Client/Transmission/TransmissionRPCException.php index 6afac8d..770e03a 100644 --- a/app/Client/Transmission/TransmissionRPCException.php +++ b/app/Client/Transmission/TransmissionRPCException.php @@ -6,7 +6,7 @@ * Time: 2020 */ -namespace IYUU\Client\Transmission; +namespace IYUU\Client\transmission; /** * This is the type of exception the TransmissionRPC class will throw