@@ -45,12 +45,12 @@ discard block |
||
45 | 45 | protected function execute(InputInterface $input, OutputInterface $output) : int |
46 | 46 | { |
47 | 47 | |
48 | - if(!$output->isQuiet()) { |
|
48 | + if (!$output->isQuiet()) { |
|
49 | 49 | $output->writeln($this->getApplication()->getLongVersion()); |
50 | 50 | } |
51 | 51 | |
52 | 52 | $composerJson = realpath($input->getArgument('composer-json')); |
53 | - if(false === $composerJson) { |
|
53 | + if (false === $composerJson) { |
|
54 | 54 | throw new \InvalidArgumentException('file not found: [' . $input->getArgument('composer-json') . ']'); |
55 | 55 | } |
56 | 56 | $this->checkJsonFile($composerJson); |
@@ -96,20 +96,20 @@ discard block |
||
96 | 96 | $guesser = new DependencyGuesser(); |
97 | 97 | foreach ($unknownSymbols as $unknownSymbol) { |
98 | 98 | $guessedDependencies = []; |
99 | - foreach($guesser($unknownSymbol) as $guessedDependency) { |
|
99 | + foreach ($guesser($unknownSymbol) as $guessedDependency) { |
|
100 | 100 | $guessedDependencies[] = $guessedDependency; |
101 | 101 | } |
102 | 102 | $table->addRow([$unknownSymbol, implode("\n", $guessedDependencies)]); |
103 | 103 | } |
104 | 104 | $table->render(); |
105 | 105 | |
106 | - return ((int) (bool) $unknownSymbols); |
|
106 | + return ((int)(bool)$unknownSymbols); |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | private function getCheckOptions(InputInterface $input) : Options |
110 | 110 | { |
111 | 111 | $fileName = $input->getOption('config-file'); |
112 | - if(!$fileName) { |
|
112 | + if (!$fileName) { |
|
113 | 113 | return new Options(); |
114 | 114 | } |
115 | 115 | return new Options((new JsonLoader($fileName))->getData()); |