Skip to content

Commit 313dcc5

Browse files
committed
Scrutinizer Identified Some Dead Code
1 parent a6e9926 commit 313dcc5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/PhpSpreadsheet/Writer/Xls/Worksheet.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2827,8 +2827,7 @@ private function writeCFRule(
28272827
$bBorderRight = ($conditional->getStyle()->getBorders()->getRight()->getBorderStyle() !== Border::BORDER_OMIT) ? 1 : 0;
28282828
$bBorderTop = ($conditional->getStyle()->getBorders()->getTop()->getBorderStyle() !== Border::BORDER_OMIT) ? 1 : 0;
28292829
$bBorderBottom = ($conditional->getStyle()->getBorders()->getBottom()->getBorderStyle() !== Border::BORDER_OMIT) ? 1 : 0;
2830-
$bBorderBottom = ($conditional->getStyle()->getBorders()->getBottom()->getBorderStyle() !== Border::BORDER_OMIT) ? 1 : 0;
2831-
$diagonalDirection = $conditional->getStyle()->getBorders()->getDiagonalDirection();
2830+
//$diagonalDirection = $conditional->getStyle()->getBorders()->getDiagonalDirection();
28322831
// Excel does not support conditional diagonal border even for xlsx
28332832
$bBorderDiagTop = self::$always0; //$diagonalDirection === Borders::DIAGONAL_DOWN || $diagonalDirection === Borders::DIAGONAL_BOTH;
28342833
$bBorderDiagBottom = self::$always0; //$diagonalDirection === Borders::DIAGONAL_UP || $diagonalDirection === Borders::DIAGONAL_BOTH;

0 commit comments

Comments
 (0)