Code Duplication    Length = 5-5 lines in 2 locations

lib/Cpdf.php 2 locations

@@ 975-979 (lines=5) @@
972
                $ordering = '(UCS)';
973
                $registry = '(Adobe)';
974
975
                if ($this->encrypted) {
976
                    $this->encryptInit($id);
977
                    $ordering = $this->ARC4($ordering);
978
                    $registry = $this->ARC4($registry);
979
                }
980
981
                $stream = <<<EOT
982
/CIDInit /ProcSet findresource begin
@@ 1244-1248 (lines=5) @@
1241
                $ordering = '(UCS)';
1242
                $registry = '(Adobe)';
1243
1244
                if ($this->encrypted) {
1245
                    $this->encryptInit($id);
1246
                    $ordering = $this->ARC4($ordering);
1247
                    $registry = $this->ARC4($registry);
1248
                }
1249
1250
1251
                $res = "\n$id 0 obj\n";