Code Duplication    Length = 8-8 lines in 2 locations

src/PhpSpreadsheet/Style.php 2 locations

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