Code Duplication    Length = 7-9 lines in 3 locations

pdf/tcpdf.php 3 locations

@@ 3954-3960 (lines=7) @@
3951
					$this->SetXY($this->GetX(), $this->GetY() - (($currentFontSize - $this->FontSize)*(K_SMALL_RATIO)));
3952
					break;
3953
				}
3954
				case 'sub': {
3955
					$currentFontSize = $this->FontSize;
3956
					$this->tempfontsize = $this->FontSizePt;
3957
					$this->SetFontSize($this->FontSizePt * K_SMALL_RATIO);
3958
					$this->SetXY($this->GetX(), $this->GetY() + (($currentFontSize - $this->FontSize)*(K_SMALL_RATIO)));
3959
					break;
3960
				}
3961
				case 'small': {
3962
					$currentFontSize = $this->FontSize;
3963
					$this->tempfontsize = $this->FontSizePt;
@@ 3961-3967 (lines=7) @@
3958
					$this->SetXY($this->GetX(), $this->GetY() + (($currentFontSize - $this->FontSize)*(K_SMALL_RATIO)));
3959
					break;
3960
				}
3961
				case 'small': {
3962
					$currentFontSize = $this->FontSize;
3963
					$this->tempfontsize = $this->FontSizePt;
3964
					$this->SetFontSize($this->FontSizePt * K_SMALL_RATIO);
3965
					$this->SetXY($this->GetX(), $this->GetY() + (($currentFontSize - $this->FontSize)/3));
3966
					break;
3967
				}
3968
				case 'font': {
3969
					if (isset($attr['color']) AND $attr['color']!='') {
3970
						$coul = $this->convertColorHexToDec($attr['color']);
@@ 4105-4113 (lines=9) @@
4102
				case 'h3':
4103
				case 'h4':
4104
				case 'h5':
4105
				case 'h6': {
4106
					$currentFontSize = $this->FontSize;
4107
					$this->SetFontSize($this->tempfontsize);
4108
					$this->tempfontsize = $this->FontSizePt;
4109
					$this->setStyle('b', false);
4110
					$this->Ln();
4111
					$this->lasth = $this->FontSize * K_CELL_HEIGHT_RATIO;
4112
					break;
4113
				}
4114
				default : {
4115
					break;
4116
				}