Code Duplication    Length = 9-9 lines in 2 locations

app/Vendor/PHPExcel/PHPExcel/Reader/Excel2007.php 1 location

@@ 1831-1839 (lines=9) @@
1828
			if ($style->border["diagonalDown"] == 'true' || $style->border["diagonalDown"] == 1) {
1829
				$diagonalDown = true;
1830
			}
1831
			if ($diagonalUp == false && $diagonalDown == false) {
1832
				$docStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_NONE);
1833
			} elseif ($diagonalUp == true && $diagonalDown == false) {
1834
				$docStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_UP);
1835
			} elseif ($diagonalUp == false && $diagonalDown == true) {
1836
				$docStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_DOWN);
1837
			} elseif ($diagonalUp == true && $diagonalDown == true) {
1838
				$docStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_BOTH);
1839
			}
1840
			self::_readBorder($docStyle->getBorders()->getLeft(), $style->border->left);
1841
			self::_readBorder($docStyle->getBorders()->getRight(), $style->border->right);
1842
			self::_readBorder($docStyle->getBorders()->getTop(), $style->border->top);

app/Vendor/PHPExcel/PHPExcel/Reader/Excel5.php 1 location

@@ 2051-2059 (lines=9) @@
2048
					$diagonalUp = (0x80000000 & self::_GetInt4d($recordData, 10)) >> 31 ?
2049
						true : false;
2050
2051
					if ($diagonalUp == false && $diagonalDown == false) {
2052
						$objStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_NONE);
2053
					} elseif ($diagonalUp == true && $diagonalDown == false) {
2054
						$objStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_UP);
2055
					} elseif ($diagonalUp == false && $diagonalDown == true) {
2056
						$objStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_DOWN);
2057
					} elseif ($diagonalUp == true && $diagonalDown == true) {
2058
						$objStyle->getBorders()->setDiagonalDirection(PHPExcel_Style_Borders::DIAGONAL_BOTH);
2059
					}
2060
2061
				// offset: 14; size: 4;
2062
					// bit: 6-0; mask: 0x0000007F; top color