@@ -99,6 +99,6 @@ |
||
99 | 99 | )); |
100 | 100 | } |
101 | 101 | |
102 | - $this->definedSymbols[(string)$node->namespacedName] = $node->namespacedName; |
|
102 | + $this->definedSymbols[(string) $node->namespacedName] = $node->namespacedName; |
|
103 | 103 | } |
104 | 104 | } |
@@ -168,7 +168,7 @@ |
||
168 | 168 | */ |
169 | 169 | private function recordUsageOf(Node\Name $symbol) |
170 | 170 | { |
171 | - $this->collectedSymbols[(string)$symbol] = $symbol; |
|
171 | + $this->collectedSymbols[(string) $symbol] = $symbol; |
|
172 | 172 | } |
173 | 173 | |
174 | 174 | /** |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | private function filterFilesByExtension(Traversable $files, string $fileExtension): Traversable |
23 | 23 | { |
24 | - $extensionMatcher = '/.*' . preg_quote($fileExtension) . '$/'; |
|
24 | + $extensionMatcher = '/.*'.preg_quote($fileExtension).'$/'; |
|
25 | 25 | |
26 | 26 | /* @var $file \SplFileInfo */ |
27 | 27 | foreach ($files as $file) { |
@@ -11,18 +11,18 @@ |
||
11 | 11 | $packageDir = dirname($composerJsonPath); |
12 | 12 | |
13 | 13 | $vendorDirs = array_values(array_map( |
14 | - function (string $vendorName) use ($packageDir) { |
|
15 | - return $packageDir . '/vendor/' . $vendorName; |
|
14 | + function(string $vendorName) use ($packageDir) { |
|
15 | + return $packageDir.'/vendor/'.$vendorName; |
|
16 | 16 | }, |
17 | 17 | array_keys(json_decode(file_get_contents($composerJsonPath), true)['require'] ?? []) |
18 | 18 | )); |
19 | 19 | |
20 | 20 | foreach ($vendorDirs as $vendorDir) { |
21 | - if (!file_exists($vendorDir . '/composer.json')) { |
|
21 | + if (!file_exists($vendorDir.'/composer.json')) { |
|
22 | 22 | continue; |
23 | 23 | } |
24 | 24 | |
25 | - yield from (new LocateComposerPackageSourceFiles())->__invoke($vendorDir . '/composer.json'); |
|
25 | + yield from (new LocateComposerPackageSourceFiles())->__invoke($vendorDir.'/composer.json'); |
|
26 | 26 | } |
27 | 27 | } |
28 | 28 | } |
@@ -36,9 +36,9 @@ |
||
36 | 36 | public function __construct(array $options = []) |
37 | 37 | { |
38 | 38 | foreach ($options as $key => $option) { |
39 | - $methodName = 'set' . $this->getCamelCase($key); |
|
39 | + $methodName = 'set'.$this->getCamelCase($key); |
|
40 | 40 | if (!method_exists($this, $methodName)) { |
41 | - throw new \InvalidArgumentException($key . ' is not a known option - there is no method ' . $methodName); |
|
41 | + throw new \InvalidArgumentException($key.' is not a known option - there is no method '.$methodName); |
|
42 | 42 | } |
43 | 43 | $this->$methodName($option); |
44 | 44 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | $composerJson = realpath($input->getArgument('composer-json')); |
52 | 52 | if (false === $composerJson) { |
53 | - throw new \InvalidArgumentException('file not found: [' . $input->getArgument('composer-json') . ']'); |
|
53 | + throw new \InvalidArgumentException('file not found: ['.$input->getArgument('composer-json').']'); |
|
54 | 54 | } |
55 | 55 | $this->checkJsonFile($composerJson); |
56 | 56 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | } |
103 | 103 | $table->render(); |
104 | 104 | |
105 | - return ((int)(bool)$unknownSymbols); |
|
105 | + return ((int) (bool) $unknownSymbols); |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | private function getCheckOptions(InputInterface $input): Options |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | if (!$version) { |
35 | 35 | $pwd = getcwd(); |
36 | - chdir(realpath(__DIR__ . '/../../../')); |
|
36 | + chdir(realpath(__DIR__.'/../../../')); |
|
37 | 37 | $gitVersion = @exec('git describe --tags --dirty=-dev --always 2>&1', $output, $returnValue); |
38 | 38 | chdir($pwd); |
39 | 39 | if ($returnValue === 0) { |