/var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/Console
NameSizeModeActions
Command/-0755rm
Exception/-0755rm
Arguments.php38580644editdlrm
BaseCommand.php80360644editdlrm
Command.php1760644editdlrm
CommandCollection.php72110644editdlrm
CommandCollectionAwareInterface.php10220644editdlrm
CommandFactory.php14310644editdlrm
CommandFactoryInterface.php9960644editdlrm
CommandInterface.php16980644editdlrm
CommandRunner.php125360644editdlrm
CommandScanner.php48280644editdlrm
composer.json11730644editdlrm
ConsoleErrorHandler.php2340644editdlrm
ConsoleInput.php28750644editdlrm
ConsoleInputArgument.php54920644editdlrm
ConsoleInputOption.php81320644editdlrm
ConsoleInputSubcommand.php39040644editdlrm
ConsoleIo.php206420644editdlrm
ConsoleOptionParser.php303260644editdlrm
ConsoleOutput.php97170644editdlrm
Helper.php16750644editdlrm
HelperRegistry.php33460644editdlrm
HelpFormatter.php72160644editdlrm
README.md33210644editdlrm
Shell.php293530644editdlrm
ShellDispatcher.php122240644editdlrm
TaskRegistry.php30050644editdlrm
Edit: /var/www/vhosts/ihelp.ro/_OLD/vendor/cakephp/cakephp/src/Console/ConsoleInput.php (2875B)
_canReadline = (extension_loaded('readline') && $handle === 'php://stdin'); $this->_input = fopen($handle, 'rb'); } /** * Read a value from the stream * * @return string|null The value of the stream. Null on EOF. */ public function read(): ?string { if ($this->_canReadline) { /** @var string|false $line */ $line = readline(''); if ($line !== false && strlen($line) > 0) { readline_add_history($line); } } else { $line = fgets($this->_input); } if ($line === false) { return null; } return $line; } /** * Check if data is available on stdin * * @param int $timeout An optional time to wait for data * @return bool True for data available, false otherwise */ public function dataAvailable(int $timeout = 0): bool { $readFds = [$this->_input]; $writeFds = null; $errorFds = null; /** @var string|null $error */ $error = null; set_error_handler(function (int $code, string $message) use (&$error) { $error = "stream_select failed with code={$code} message={$message}."; }); $readyFds = stream_select($readFds, $writeFds, $errorFds, $timeout); restore_error_handler(); if ($error !== null) { throw new ConsoleException($error); } return $readyFds > 0; } }