Passed
Branch symfony-console (ee6a13)
by Kacper
03:28
created
bin/Commands/HighlightCommand.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,26 +47,26 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.