QRstr   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 4
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
wmc 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A set() 0 2 3
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
}