Code Duplication    Length = 6-8 lines in 2 locations

app/Vendor/PHPExcel/PHPExcel/Writer/Excel2007/Chart.php 2 locations

@@ 682-687 (lines=6) @@
679
			$objWriter->endElement();
680
		}
681
682
		if (!is_null($plotGroup->getPlotGrouping())) {
683
			$plotGroupingType = $plotGroup->getPlotGrouping();
684
			$objWriter->startElement('c:grouping');
685
				$objWriter->writeAttribute('val', $plotGroupingType);
686
			$objWriter->endElement();
687
		}
688
689
		//	Get these details before the loop, because we can use the count to check for varyColors
690
		$plotSeriesOrder = $plotGroup->getPlotOrder();
@@ 801-808 (lines=8) @@
798
						($groupType == PHPExcel_Chart_DataSeries::TYPE_PIECHART_3D) ||
799
						($groupType == PHPExcel_Chart_DataSeries::TYPE_DONUTCHART)) {
800
801
						if (!is_null($plotGroup->getPlotStyle())) {
802
							$plotStyle = $plotGroup->getPlotStyle();
803
							if ($plotStyle) {
804
								$objWriter->startElement('c:explosion');
805
									$objWriter->writeAttribute('val', 25);
806
								$objWriter->endElement();
807
							}
808
						}
809
					}
810
811
					if (($groupType === PHPExcel_Chart_DataSeries::TYPE_BUBBLECHART) ||