Code Duplication    Length = 5-5 lines in 2 locations

src/PhpSpreadsheet/Writer/Ods/Content.php 2 locations

@@ 193-197 (lines=5) @@
190
            $objWriter->startElement('table:table-cell');
191
192
            switch ($cell->getDataType()) {
193
                case \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_BOOL:
194
                    $objWriter->writeAttribute('office:value-type', 'boolean');
195
                    $objWriter->writeAttribute('office:value', $cell->getValue());
196
                    $objWriter->writeElement('text:p', $cell->getValue());
197
                    break;
198
199
                case \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_ERROR:
200
                    throw new \PhpOffice\PhpSpreadsheet\Writer\Exception('Writing of error not implemented yet.');
@@ 223-227 (lines=5) @@
220
                    throw new \PhpOffice\PhpSpreadsheet\Writer\Exception('Writing of inline not implemented yet.');
221
                    break;
222
223
                case \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_NUMERIC:
224
                    $objWriter->writeAttribute('office:value-type', 'float');
225
                    $objWriter->writeAttribute('office:value', $cell->getValue());
226
                    $objWriter->writeElement('text:p', $cell->getValue());
227
                    break;
228
229
                case \PhpOffice\PhpSpreadsheet\Cell\DataType::TYPE_STRING:
230
                    $objWriter->writeAttribute('office:value-type', 'string');