Completed
Pull Request — master (#17)
by
unknown
09:24
created

transfer.php ➔ couchbase_php_serialize_encoder()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1
Metric Value
cc 1
eloc 6
nc 1
nop 1
dl 0
loc 9
ccs 6
cts 6
cp 1
crap 1
rs 9.6666
1
<?php
2
3
/**
4
 * @param $value
5
 *
6
 * @return mixed
7
 */
8
function couchbase_php_serialize_encoder($value)
9
{
10 6
    return couchbase_basic_encoder_v1($value, [
11 6
        'sertype'    => COUCHBASE_SERTYPE_PHP,
12 6
        'cmprtype'   => COUCHBASE_CMPRTYPE_NONE,
13 6
        'cmprthresh' => 0,
14 6
        'cmprfactor' => 0,
15 6
    ]);
16
}
17