Code Duplication    Length = 8-8 lines in 2 locations

src/PhpSpreadsheet/Style/Style.php 2 locations

@@ 313-320 (lines=8) @@
310
                        foreach ($innerEdges as $innerEdge) {
311
                            switch ($innerEdge) {
312
                                case 'top':
313
                                case 'bottom':
314
                                    // should pick up 'horizontal' border property if set
315
                                    if (isset($pStyles['borders']['horizontal'])) {
316
                                        $regionStyles['borders'][$innerEdge] = $pStyles['borders']['horizontal'];
317
                                    } else {
318
                                        unset($regionStyles['borders'][$innerEdge]);
319
                                    }
320
321
                                    break;
322
                                case 'left':
323
                                case 'right':
@@ 323-330 (lines=8) @@
320
321
                                    break;
322
                                case 'left':
323
                                case 'right':
324
                                    // should pick up 'vertical' border property if set
325
                                    if (isset($pStyles['borders']['vertical'])) {
326
                                        $regionStyles['borders'][$innerEdge] = $pStyles['borders']['vertical'];
327
                                    } else {
328
                                        unset($regionStyles['borders'][$innerEdge]);
329
                                    }
330
331
                                    break;
332
                            }
333
                        }