private function LintCommand::getStdin in Lockr 7.3
1 call to LintCommand::getStdin()
- LintCommand::execute in vendor/
symfony/ yaml/ Command/ LintCommand.php
File
- vendor/
symfony/ yaml/ Command/ LintCommand.php, line 199
Class
- LintCommand
- Validates YAML files syntax and outputs encountered errors.
Namespace
Symfony\Component\Yaml\CommandCode
private function getStdin() {
if (0 !== ftell(STDIN)) {
return;
}
$inputs = '';
while (!feof(STDIN)) {
$inputs .= fread(STDIN, 1024);
}
return $inputs;
}