| Conditions | 2 |
| Paths | 2 |
| Total Lines | 30 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function getData($rowInfo) |
||
| 15 | { |
||
| 16 | $colMic = 0x0000; // First defined column |
||
| 17 | $colMac = 0x0000; // Last defined column |
||
| 18 | $irwMac = 0x0000; // Used by Excel to optimise loading |
||
| 19 | $reserved = 0x0000; // Reserved |
||
| 20 | |||
| 21 | $height = $rowInfo['height']; |
||
| 22 | if (!is_null($height)) { |
||
| 23 | $height = $height * 20; // row height |
||
| 24 | } else { |
||
| 25 | $height = 0xff; // default row height is 256 |
||
| 26 | } |
||
| 27 | |||
| 28 | $level = max(0, min($rowInfo['level'], 7)); // level should be between 0 and 7 |
||
| 29 | |||
| 30 | $data = pack( |
||
| 31 | "vvvvvvvv", |
||
| 32 | $rowInfo['row'], |
||
| 33 | $colMic, |
||
| 34 | $colMac, |
||
| 35 | $height, |
||
| 36 | $irwMac, |
||
| 37 | $reserved, |
||
| 38 | $this->getGrBit($rowInfo['format'], $rowInfo['hidden'], $level), |
||
| 39 | $this->xf($rowInfo['format']) |
||
| 40 | ); |
||
| 41 | |||
| 42 | return $this->getFullRecord($data); |
||
| 43 | } |
||
| 44 | |||
| 78 |