/opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/react/stream/src
NameSizeModeActions
CompositeStream.php18960644editdlrm
DuplexResourceStream.php75570644editdlrm
DuplexStreamInterface.php17440644editdlrm
ReadableResourceStream.php61080644editdlrm
ReadableStreamInterface.php142690644editdlrm
ThroughStream.php52720644editdlrm
Util.php22850644editdlrm
WritableResourceStream.php56280644editdlrm
WritableStreamInterface.php147780644editdlrm
Edit: /opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/react/stream/src/CompositeStream.php (1896B)
readable = $readable; $this->writable = $writable; if (!$readable->isReadable() || !$writable->isWritable()) { $this->close(); return; } Util::forwardEvents($this->readable, $this, array('data', 'end', 'error')); Util::forwardEvents($this->writable, $this, array('drain', 'error', 'pipe')); $this->readable->on('close', array($this, 'close')); $this->writable->on('close', array($this, 'close')); } public function isReadable() { return $this->readable->isReadable(); } public function pause() { $this->readable->pause(); } public function resume() { if (!$this->writable->isWritable()) { return; } $this->readable->resume(); } public function pipe(WritableStreamInterface $dest, array $options = array()) { return Util::pipe($this, $dest, $options); } public function isWritable() { return $this->writable->isWritable(); } public function write($data) { return $this->writable->write($data); } public function end($data = null) { $this->readable->pause(); $this->writable->end($data); } public function close() { if ($this->closed) { return; } $this->closed = \true; $this->readable->close(); $this->writable->close(); $this->emit('close'); $this->removeAllListeners(); } }