Completed
Pull Request — develop (#142)
by Dominik
24:23
created
src/PhpSpreadsheet/Writer/Ods/Content.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -224,14 +224,14 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.