Code Duplication    Length = 1-4 lines in 2 locations

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

@@ 405-408 (lines=4) @@
402
            if ($this->value['right'] !== null) {
403
                $x = $this->getLastWidth(true) - $this->value['right'] - $this->value['width'];
404
                if ($this->value['margin']['r']) $x -= $this->value['margin']['r'];
405
            } else {
406
                $x = $this->value['left'];
407
                if ($this->value['margin']['l']) $x += $this->value['margin']['l'];
408
            }
409
410
            if ($this->value['bottom'] !== null) {
411
                $y = $this->getLastHeight(true) - $this->value['bottom'] - $this->value['height'];
@@ 428-428 (lines=1) @@
425
        } else {
426
            $this->value['x'] = $currentX;
427
            $this->value['y'] = $currentY;
428
            if ($this->value['margin']['l']) $this->value['x'] += $this->value['margin']['l'];
429
            if ($this->value['margin']['t']) $this->value['y'] += $this->value['margin']['t'];
430
        }
431