Lines Matching refs:io
84 $io = new SymfonyStyle($input, $output);
95 return $this->display($io, [$this->validate($stdin, $flags)]);
109 return $this->display($io, $filesInfo);
133 private function display(SymfonyStyle $io, array $files) argument
137 return $this->displayTxt($io, $files);
139 return $this->displayJson($io, $files);
145 private function displayTxt(SymfonyStyle $io, array $filesInfo) argument
152 … $io->comment('<info>OK</info>'.($info['file'] ? sprintf(' in %s', $info['file']) : ''));
155 … $io->text('<error> ERROR </error>'.($info['file'] ? sprintf(' in %s', $info['file']) : ''));
156 $io->text(sprintf('<error> >> %s</error>', $info['message']));
161 $io->success(sprintf('All %d YAML files contain valid syntax.', $countFiles));
163 …$io->warning(sprintf('%d YAML files have valid syntax and %d contain errors.', $countFiles - $erro…
169 private function displayJson(SymfonyStyle $io, array $filesInfo) argument
180 $io->writeln(json_encode($filesInfo, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));