Failed Conditions
Pull Request — master (#33)
by Matthias
02:31
created
src/ComposerRequireChecker/NodeVisitor/DefinedSymbolCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,6 +99,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/ComposerRequireChecker/NodeVisitor/UsedSymbolCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/ComposerRequireChecker/FileLocator/LocateAllFilesByExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
FileLocator/LocateComposerPackageDirectDependenciesSourceFiles.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,18 +11,18 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/ComposerRequireChecker/Cli/CheckCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/ComposerRequireChecker/Cli/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/ComposerRequireChecker/Cli/Options.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,10 +36,10 @@
 block discarded – undo
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 41
                 throw new \InvalidArgumentException(
42
-                    $key . ' is not a known option - there is no method ' . $methodName
42
+                    $key.' is not a known option - there is no method '.$methodName
43 43
                 );
44 44
             }
45 45
             $this->$methodName($option);
Please login to merge, or discard this patch.