Hex   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A toStr() 0 9 2
1
<?php
2
3
namespace FForattini\Btrieve;
4
5
class Hex
6
{
7
    public static function toStr($hex)
8
    {
9
        $str = '';
10
        for ($i = 0; $i < strlen($hex); $i += 2) {
11
            $str .= chr(hexdec(substr($hex, $i, 2)));
12
        }
13
14
        return $str;
15
    }
16
}
17