Code Duplication    Length = 8-8 lines in 2 locations

src/PhpSpreadsheet/Style.php 2 locations

@@ 331-338 (lines=8) @@
328
                        foreach ($innerEdges as $innerEdge) {
329
                            switch ($innerEdge) {
330
                                case 'top':
331
                                case 'bottom':
332
                                    // should pick up 'horizontal' border property if set
333
                                    if (isset($pStyles['borders']['horizontal'])) {
334
                                        $regionStyles['borders'][$innerEdge] = $pStyles['borders']['horizontal'];
335
                                    } else {
336
                                        unset($regionStyles['borders'][$innerEdge]);
337
                                    }
338
                                    break;
339
                                case 'left':
340
                                case 'right':
341
                                    // should pick up 'vertical' border property if set
@@ 340-347 (lines=8) @@
337
                                    }
338
                                    break;
339
                                case 'left':
340
                                case 'right':
341
                                    // should pick up 'vertical' border property if set
342
                                    if (isset($pStyles['borders']['vertical'])) {
343
                                        $regionStyles['borders'][$innerEdge] = $pStyles['borders']['vertical'];
344
                                    } else {
345
                                        unset($regionStyles['borders'][$innerEdge]);
346
                                    }
347
                                    break;
348
                            }
349
                        }
350