Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | public function writeToStream(SplFileObject $fileObject, $encryptionKey) |
||
42 | { |
||
43 | $value = $this->value; |
||
44 | |||
45 | if (null !== $encryptionKey) { |
||
46 | $value = \Bacon\Pdf\Utils\EncryptionUtils::rc4($encryptionKey, $value); |
||
47 | } |
||
48 | |||
49 | $fileObject->fwrite('<'); |
||
50 | $fileObject->fwrite(chunk_split(bin2hex($value), 255, "\n")); |
||
51 | $fileObject->fwrite('>'); |
||
52 | } |
||
53 | } |
||
54 |