Completed
Push — master ( d1bca4...94350e )
by Bai
10s
created

Config::getUpHostBackup()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace Qiniu;
3
4
use Qiniu\Zone;
5
6
final class Config
7
{
8
    const SDK_VER = '7.0.8';
9
10
    const BLOCK_SIZE = 4194304; //4*1024*1024 分块上传块大小,该参数为接口规格,不能修改
11
12
    const RS_HOST  = 'http://rs.qbox.me';               // 文件元信息管理操作Host
13
    const RSF_HOST = 'http://rsf.qbox.me';              // 列举操作Host
14
    const API_HOST = 'http://api.qiniu.com';            // 数据处理操作Host
15
    const UC_HOST  = 'http://uc.qbox.me';              // Host
16
17
    public $zone;
18
19 18
    public function __construct(Zone $z = null)         // 构造函数,默认为zone0
0 ignored issues
show
Unused Code introduced by
The parameter $z is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
20
    {
21
        // if ($z === null) {
22 18
            $this->zone = new Zone();
23
        // }
24 18
    }
25
}
26