@@ -224,14 +224,14 @@ |
||
224 | 224 | throw new Exception('Writing of error not implemented yet.'); |
225 | 225 | break; |
226 | 226 | case DataType::TYPE_FORMULA: |
227 | - if(!method_exists($this->getParentWriter(), "getPreCalculateFormulas") || $this->getParentWriter()->getPreCalculateFormulas()) { |
|
227 | + if (!method_exists($this->getParentWriter(), "getPreCalculateFormulas") || $this->getParentWriter()->getPreCalculateFormulas()) { |
|
228 | 228 | try { |
229 | 229 | $formula_value = $cell->getCalculatedValue(); |
230 | 230 | } catch (Exception $e) { |
231 | 231 | // don't do anything |
232 | 232 | } |
233 | 233 | } |
234 | - if(empty($formula_value)) { |
|
234 | + if (empty($formula_value)) { |
|
235 | 235 | $formulaValue = $cell->getValue(); |
236 | 236 | } |
237 | 237 | $objWriter->writeAttribute('table:formula', 'of:' . $cell->getValue()); |