Code Duplication    Length = 3-3 lines in 3 locations

src/Intraface/LegacyCpdf.php 3 locations

@@ 3118-3120 (lines=3) @@
3115
                if (isset($this->fonts[$cf]['differences'][$char])) {
3116
                    // then this character is being replaced by another
3117
                    $name = $this->fonts[$cf]['differences'][$char];
3118
                    if (isset($this->fonts[$cf]['C'][$name])) {
3119
                        $w+=$this->fonts[$cf]['C'][$name];
3120
                    }
3121
                } elseif (isset($this->fonts[$cf]['C'][$char])) {
3122
                    $w+=$this->fonts[$cf]['C'][$char];
3123
                }
@@ 3121-3123 (lines=3) @@
3118
                    if (isset($this->fonts[$cf]['C'][$name])) {
3119
                        $w+=$this->fonts[$cf]['C'][$name];
3120
                    }
3121
                } elseif (isset($this->fonts[$cf]['C'][$char])) {
3122
                    $w+=$this->fonts[$cf]['C'][$char];
3123
                }
3124
            }
3125
        }
3126
        $this->currentTextState = $store_currentTextState;
@@ 3211-3213 (lines=3) @@
3208
                    $cOrd2 = $cOrd;
3209
                }
3210
3211
                if (isset($this->fonts[$cf]['C'][$cOrd2])) {
3212
                    $w+=$this->fonts[$cf]['C'][$cOrd2];
3213
                }
3214
                if ($w>$tw) {
3215
                    // then we need to truncate this line
3216
                    if ($break>0) {