Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
37 | 1 | public function fromFields(array $fields) |
|
38 | { |
||
39 | 1 | $node_high = substr($fields['node'], 0, 8); |
|
40 | 1 | $node_low = substr($fields['node'], 8, 4); |
|
41 | |||
42 | 1 | $time_midlow = $fields['time_mid'] . $fields['time_low']; |
|
43 | |||
44 | 1 | return sprintf( |
|
45 | 1 | '%s-%s-%s-%s-%s', |
|
46 | 1 | $node_high, |
|
47 | 1 | $node_low, |
|
48 | 1 | $fields['time_high'], |
|
49 | 1 | $fields['clock_seq'], |
|
50 | $time_midlow |
||
51 | 1 | ); |
|
52 | } |
||
53 | } |
||
54 |