Code Duplication    Length = 6-8 lines in 2 locations

web_interface/astpp/application/libraries/html2pdf/_class/parsingCss.class.php 2 locations

@@ 1088-1095 (lines=8) @@
1085
                    $return = false;
1086
                }
1087
                if ($this->value['width'] < 0) $this->value['width'] = 0;
1088
            } else {
1089
                if ($this->value['width']) {
1090
                    if ($this->value['border']['l']['width']) $this->value['width'] += $this->value['border']['l']['width'];
1091
                    if ($this->value['border']['r']['width']) $this->value['width'] += $this->value['border']['r']['width'];
1092
                    if ($this->value['padding']['l'])         $this->value['width'] += $this->value['padding']['l'];
1093
                    if ($this->value['padding']['r'])         $this->value['width'] += $this->value['padding']['r'];
1094
                }
1095
            }
1096
        }
1097
        if ($this->value['height']) {
1098
            if ($this->value['border']['b']['width']) $this->value['height'] += $this->value['border']['b']['width'];
@@ 1097-1102 (lines=6) @@
1094
                }
1095
            }
1096
        }
1097
        if ($this->value['height']) {
1098
            if ($this->value['border']['b']['width']) $this->value['height'] += $this->value['border']['b']['width'];
1099
            if ($this->value['border']['t']['width']) $this->value['height'] += $this->value['border']['t']['width'];
1100
            if ($this->value['padding']['b'])         $this->value['height'] += $this->value['padding']['b'];
1101
            if ($this->value['padding']['t'])         $this->value['height'] += $this->value['padding']['t'];
1102
        }
1103
1104
        if ($this->value['top'] != null)      $this->value['top']     = $this->convertToMM($this->value['top'], $this->getLastHeight(true));
1105
        if ($this->value['bottom'] != null)   $this->value['bottom']  = $this->convertToMM($this->value['bottom'], $this->getLastHeight(true));