@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | protected function execute(InputInterface $input, OutputInterface $output) : int |
50 | 50 | { |
51 | 51 | |
52 | - if(!$output->isQuiet()) { |
|
52 | + if (!$output->isQuiet()) { |
|
53 | 53 | $output->writeln($this->getApplication()->getLongVersion()); |
54 | 54 | } |
55 | 55 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | |
59 | 59 | $getPackageSourceFiles = new LocateComposerPackageSourceFiles(); |
60 | 60 | |
61 | - $sourcesASTs = new LocateASTFromFiles((new ParserFactory())->create(ParserFactory::PREFER_PHP7)); |
|
61 | + $sourcesASTs = new LocateASTFromFiles((new ParserFactory())->create(ParserFactory::PREFER_PHP7)); |
|
62 | 62 | |
63 | 63 | $definedVendorSymbols = (new LocateDefinedSymbolsFromASTRoots())->__invoke($sourcesASTs( |
64 | 64 | (new ComposeGenerators())->__invoke( |
@@ -98,16 +98,16 @@ discard block |
||
98 | 98 | private function getCheckOptions(InputInterface $input) : Options |
99 | 99 | { |
100 | 100 | $fileName = $input->getOption('config-file'); |
101 | - if(!$fileName) { |
|
101 | + if (!$fileName) { |
|
102 | 102 | return new Options(); |
103 | 103 | } |
104 | 104 | |
105 | - if(!is_readable($fileName)) { |
|
105 | + if (!is_readable($fileName)) { |
|
106 | 106 | throw new \InvalidArgumentException('unable to read ' . $fileName); |
107 | 107 | } |
108 | 108 | |
109 | 109 | $jsonData = json_decode(file_get_contents($fileName), true); |
110 | - if(false === $jsonData) { |
|
110 | + if (false === $jsonData) { |
|
111 | 111 | throw new \Exception('error parsing the config file: ' . json_last_error_msg()); |
112 | 112 | } |
113 | 113 | |
@@ -122,11 +122,11 @@ discard block |
||
122 | 122 | */ |
123 | 123 | private function checkJsonFile(\string $jsonFile) |
124 | 124 | { |
125 | - if(!is_readable($jsonFile)) { |
|
125 | + if (!is_readable($jsonFile)) { |
|
126 | 126 | throw new InvalidInputFileException('cannot read ' . $jsonFile); |
127 | 127 | } |
128 | 128 | |
129 | - if(false == json_decode(file_get_contents($jsonFile))) { |
|
129 | + if (false == json_decode(file_get_contents($jsonFile))) { |
|
130 | 130 | throw new InvalidInputFileException('error parsing ' . $jsonFile . ': ' . json_last_error_msg()); |
131 | 131 | } |
132 | 132 |