QRstr::set()   A
last analyzed

Complexity

Conditions 3
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 1
nc 1
nop 5
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Class qrstr
4
 * @author Tinymeng <[email protected]>
5
 * @date: 2019/9/26 18:16
6
 */
7
8
namespace tinymeng\code\Gateways\qrcode;
9
10
class QRstr
11
{
12
    public static function set(&$srctab, $x, $y, $repl, $replLen = false) {
13
        $srctab[$y] = substr_replace($srctab[$y], ($replLen !== false)?substr($repl,0,$replLen):$repl, $x, ($replLen !== false)?$replLen:strlen($repl));
14
    }
15
}