Code Duplication    Length = 5-7 lines in 2 locations

src/Intraface/LegacyCpdf.php 2 locations

@@ 2412-2418 (lines=7) @@
2409
        }
2410
        if ($fill) {
2411
            $this->objects[$this->currentContents]['c'].=' f';
2412
        } else {
2413
            if ($close) {
2414
                $this->objects[$this->currentContents]['c'].=' s'; // small 's' signifies closing the path as well
2415
            } else {
2416
                $this->objects[$this->currentContents]['c'].=' S';
2417
            }
2418
        }
2419
        if ($angle !=0) {
2420
            $this->objects[$this->currentContents]['c'].=' Q';
2421
        }
@@ 2476-2480 (lines=5) @@
2473
        for ($i=2; $i<$np*2; $i=$i+2) {
2474
            $this->objects[$this->currentContents]['c'].= sprintf('%.3F', $p[$i]).' '.sprintf('%.3F', $p[$i+1]).' l ';
2475
        }
2476
        if ($f==1) {
2477
            $this->objects[$this->currentContents]['c'].=' f';
2478
        } else {
2479
            $this->objects[$this->currentContents]['c'].=' S';
2480
        }
2481
    }
2482
2483
    /**