Lines Matching refs:io
93 $io = new SymfonyStyle($input, $output);
113 return $this->display($io, [$this->validate(file_get_contents('php://stdin'), $flags)]);
133 return $this->display($io, $filesInfo);
157 private function display(SymfonyStyle $io, array $files): int
161 return $this->displayTxt($io, $files);
163 return $this->displayJson($io, $files);
165 return $this->displayTxt($io, $files, true);
171 private function displayTxt(SymfonyStyle $io, array $filesInfo, bool $errorAsGithubAnnotations = false): int
178 $githubReporter = new GithubActionReporter($io);
183 $io->comment('<info>OK</info>'.($info['file'] ? sprintf(' in %s', $info['file']) : ''));
186 $io->text('<error> ERROR </error>'.($info['file'] ? sprintf(' in %s', $info['file']) : ''));
187 $io->text(sprintf('<error> >> %s</error>', $info['message']));
200 $io->success(sprintf('All %d YAML files contain valid syntax.', $countFiles));
202 $io->warning(sprintf('%d YAML files have valid syntax and %d contain errors.%s', $countFiles - $erroredFiles, $erroredFiles, $suggestTagOption ? ' Use the --parse-tags option if you want parse custom tags.' : ''));
208 private function displayJson(SymfonyStyle $io, array $filesInfo): int
223 $io->writeln(json_encode($filesInfo, \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES));