Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 4509-4513 (lines=5) @@
4506
4507
		// bit: 4-6; mask: 0x00000070; error type
4508
		$errorStyle = (0x00000070 & $options) >> 4;
4509
		switch ($errorStyle) {
4510
			case 0x00:	$errorStyle = PHPExcel_Cell_DataValidation::STYLE_STOP;			break;
4511
			case 0x01:	$errorStyle = PHPExcel_Cell_DataValidation::STYLE_WARNING;		break;
4512
			case 0x02:	$errorStyle = PHPExcel_Cell_DataValidation::STYLE_INFORMATION;	break;
4513
		}
4514
4515
		// bit: 7; mask: 0x00000080; 1= formula is explicit (only applies to list)
4516
		// I have only seen cases where this is 1

app/Vendor/PHPExcel/PHPExcel/Writer/Excel5/Worksheet.php 1 location

@@ 2784-2788 (lines=5) @@
2781
2782
				// error style
2783
				$errorStyle = $dataValidation->getType();
2784
				switch ($errorStyle) {
2785
					case PHPExcel_Cell_DataValidation::STYLE_STOP:			$errorStyle = 0x00;		break;
2786
					case PHPExcel_Cell_DataValidation::STYLE_WARNING:		$errorStyle = 0x01;		break;
2787
					case PHPExcel_Cell_DataValidation::STYLE_INFORMATION:	$errorStyle = 0x02;		break;
2788
				}
2789
				$options |= $errorStyle << 4;
2790
2791
				// explicit formula?