| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function extractNodeFormula($node) |
||
| 21 | { |
||
| 22 | // for cell types having a "f" tag containing the formula. |
||
| 23 | // if not, the returned formula should be empty string. |
||
| 24 | $vNode = $node->getElementsByTagName(self::XML_NODE_FORMULA)->item(0); |
||
| 25 | |||
| 26 | return ($vNode !== null) ? $vNode->nodeValue : ''; |
||
| 27 | } |
||
| 28 | } |