| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 58 | private function getColSize($line) |
||
| 59 | { |
||
| 60 | |||
| 61 | $cols = explode(' ', preg_replace('~\s+~', ' ', $line)); |
||
| 62 | $attributes = strlen($cols[0]) + 1; |
||
| 63 | $length = strlen($cols[1]) + $attributes + 2; |
||
| 64 | $date = strlen($cols[2]) + $length + 1; |
||
| 65 | $time = strlen($cols[3]) + $date + 2; |
||
| 66 | return [ |
||
| 67 | 'attributes' => 0, |
||
| 68 | 'length' => $attributes, |
||
| 69 | 'date' => $length, |
||
| 70 | 'time' => $date, |
||
| 71 | 'name' => $time, |
||
| 72 | ]; |
||
| 73 | } |
||
| 74 | } |