Code Duplication    Length = 8-9 lines in 3 locations

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

@@ 868-876 (lines=9) @@
865
				$objWriter->writeAttribute('val', $plotSeriesLabel->getPointCount() );
866
			$objWriter->endElement();
867
868
			foreach($plotSeriesLabel->getDataValues() as $plotLabelKey => $plotLabelValue) {
869
				$objWriter->startElement('c:pt');
870
					$objWriter->writeAttribute('idx', $plotLabelKey );
871
872
					$objWriter->startElement('c:v');
873
						$objWriter->writeRawData( $plotLabelValue );
874
					$objWriter->endElement();
875
				$objWriter->endElement();
876
			}
877
		$objWriter->endElement();
878
879
	}
@@ 956-964 (lines=9) @@
953
						$objWriter->writeAttribute('val', $plotSeriesValues->getPointCount() );
954
					$objWriter->endElement();
955
956
					foreach($plotSeriesValues->getDataValues() as $plotSeriesKey => $plotSeriesValue) {
957
						$objWriter->startElement('c:pt');
958
							$objWriter->writeAttribute('idx', $plotSeriesKey );
959
960
							$objWriter->startElement('c:v');
961
								$objWriter->writeRawData( $plotSeriesValue );
962
							$objWriter->endElement();
963
						$objWriter->endElement();
964
					}
965
966
				$objWriter->endElement();
967
@@ 996-1003 (lines=8) @@
993
					$objWriter->writeAttribute('val', $plotSeriesValues->getPointCount() );
994
				$objWriter->endElement();
995
996
				foreach($plotSeriesValues->getDataValues() as $plotSeriesKey => $plotSeriesValue) {
997
					$objWriter->startElement('c:pt');
998
						$objWriter->writeAttribute('idx', $plotSeriesKey );
999
						$objWriter->startElement('c:v');
1000
							$objWriter->writeRawData( 1 );
1001
						$objWriter->endElement();
1002
					$objWriter->endElement();
1003
				}
1004
1005
			$objWriter->endElement();
1006
		$objWriter->endElement();