Code Duplication    Length = 5-5 lines in 4 locations

src/PaymentSlip.php 4 locations

@@ 431-435 (lines=5) @@
428
        $lineHeight = null,
429
        $textAlign = null
430
    ) {
431
        if ($posX) {
432
            $element['PosX'] = $posX;
433
        } elseif (!isset($element['PosX'])) {
434
            $element['PosX'] = 0;
435
        }
436
        if ($posY) {
437
            $element['PosY'] = $posY;
438
        } elseif (!isset($element['PosY'])) {
@@ 436-440 (lines=5) @@
433
        } elseif (!isset($element['PosX'])) {
434
            $element['PosX'] = 0;
435
        }
436
        if ($posY) {
437
            $element['PosY'] = $posY;
438
        } elseif (!isset($element['PosY'])) {
439
            $element['PosY'] = 0;
440
        }
441
        if ($width) {
442
            $element['Width'] = $width;
443
        } elseif (!isset($element['Width'])) {
@@ 441-445 (lines=5) @@
438
        } elseif (!isset($element['PosY'])) {
439
            $element['PosY'] = 0;
440
        }
441
        if ($width) {
442
            $element['Width'] = $width;
443
        } elseif (!isset($element['Width'])) {
444
            $element['Width'] = 0;
445
        }
446
        if ($height) {
447
            $element['Height'] = $height;
448
        } elseif (!isset($element['Height'])) {
@@ 446-450 (lines=5) @@
443
        } elseif (!isset($element['Width'])) {
444
            $element['Width'] = 0;
445
        }
446
        if ($height) {
447
            $element['Height'] = $height;
448
        } elseif (!isset($element['Height'])) {
449
            $element['Height'] = 0;
450
        }
451
        if (!empty($background)) {
452
            $element['Background'] = $background;
453
        } elseif (!isset($element['Background'])) {