@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | |
19 | 19 | use Kadet\Highlighter\bin\VerboseOutput; |
20 | - use Kadet\Highlighter\KeyLighter; |
|
20 | +use Kadet\Highlighter\KeyLighter; |
|
21 | 21 | use Kadet\Highlighter\Language\Language; |
22 | 22 | use Symfony\Component\Console\Command\Command; |
23 | 23 | use Symfony\Component\Console\Exception\InvalidArgumentException; |
@@ -47,26 +47,26 @@ |
||
47 | 47 | |
48 | 48 | protected function execute(InputInterface $input, OutputInterface $output) |
49 | 49 | { |
50 | - if(!empty($input->getOption('debug')) && $output->getVerbosity() < OutputInterface::VERBOSITY_VERBOSE) { |
|
50 | + if (!empty($input->getOption('debug')) && $output->getVerbosity() < OutputInterface::VERBOSITY_VERBOSE) { |
|
51 | 51 | $output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE); |
52 | 52 | } |
53 | 53 | |
54 | 54 | $output->writeln($this->getApplication()->getLongVersion()."\n", Output::VERBOSITY_VERBOSE); |
55 | 55 | $formatter = KeyLighter::get()->getFormatter($input->getOption('format')) ?: KeyLighter::get()->getDefaultFormatter(); |
56 | 56 | |
57 | - foreach($input->getArgument('path') as $filename) { |
|
57 | + foreach ($input->getArgument('path') as $filename) { |
|
58 | 58 | $this->process($input, $output, $filename, $formatter); |
59 | 59 | } |
60 | 60 | } |
61 | 61 | |
62 | 62 | protected function content($path) |
63 | 63 | { |
64 | - if(!($file = @fopen($path, 'r'))) { |
|
64 | + if (!($file = @fopen($path, 'r'))) { |
|
65 | 65 | return false; |
66 | 66 | } |
67 | 67 | |
68 | 68 | $content = ''; |
69 | - while(!feof($file)) { |
|
69 | + while (!feof($file)) { |
|
70 | 70 | $content .= fgets($file); |
71 | 71 | } |
72 | 72 | fclose($file); |