| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 36 | public function writeToStream(SplFileObject $fileObject, $encryptionKey) |
||
| 37 | { |
||
| 38 | $this['Length'] = new NumericObject(strlen($this->data)); |
||
| 39 | parent::writeToStream($fileObject, $encryptionKey); |
||
| 40 | unset($this['Length']); |
||
| 41 | |||
| 42 | $fileObject->fwrite("\nstream\n"); |
||
| 43 | $data = $this->data; |
||
| 44 | |||
| 45 | if (null !== $encryptionKey) { |
||
| 46 | $data = EncryptionUtils::rc4($encryptionKey, $data); |
||
| 47 | } |
||
| 48 | |||
| 49 | $fileObject->fwrite($data); |
||
| 50 | $fileObject->fwrite("\nendstream"); |
||
| 51 | } |
||
| 52 | } |
||
| 53 |