Passed
Pull Request — master (#33)
by Matthias
10:53 queued 05:39
created
FileLocator/LocateComposerPackageDirectDependenciesSourceFiles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
         $packageDir = dirname($composerJsonPath);
12 12
 
13 13
         $vendorDirs = array_values(array_map(
14
-            function (string $vendorName) use ($packageDir) {
14
+            function(string $vendorName) use ($packageDir) {
15 15
                 return $packageDir . '/vendor/' . $vendorName;
16 16
             },
17 17
             array_keys(json_decode(file_get_contents($composerJsonPath), true)['require'] ?? [])
Please login to merge, or discard this patch.
src/ComposerRequireChecker/FileLocator/LocateComposerPackageSourceFiles.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,13 +29,13 @@
 block discarded – undo
29 29
     {
30 30
         $flattened = array_reduce(
31 31
             $sourceDirs,
32
-            function (array $sourceDirs, $sourceDir) {
32
+            function(array $sourceDirs, $sourceDir) {
33 33
                 return array_merge($sourceDirs, (array)$sourceDir);
34 34
             },
35 35
             []
36 36
         );
37 37
         return array_values(array_map(
38
-            function (string $sourceDir) use ($packageDir) {
38
+            function(string $sourceDir) use ($packageDir) {
39 39
                 return $this->normalizePath($packageDir . '/' . ltrim($sourceDir, '/'));
40 40
             },
41 41
             $flattened
Please login to merge, or discard this patch.
example/test.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,11 +10,11 @@  discard block
 block discarded – undo
10 10
 
11 11
 // Please run "run-test.sh", and not this file directly.
12 12
 
13
-(function () {
13
+(function() {
14 14
     require_once  __DIR__ . '/../vendor/autoload.php';
15 15
 
16 16
     $whitelistSymbols = ['null', 'true', 'false', 'static', 'self', 'parent'];
17
-    $defaultExtensions = ["Core","standard"]; // "bcmath","calendar","ctype","date","filter","hash","iconv","json","mcrypt","SPL","pcre","Reflection","session","standard","mysqlnd","tokenizer","zip","zlib","libxml","dom","PDO","Phar","SimpleXML","xml","wddx","xmlreader","xmlwriter"];
17
+    $defaultExtensions = ["Core", "standard"]; // "bcmath","calendar","ctype","date","filter","hash","iconv","json","mcrypt","SPL","pcre","Reflection","session","standard","mysqlnd","tokenizer","zip","zlib","libxml","dom","PDO","Phar","SimpleXML","xml","wddx","xmlreader","xmlwriter"];
18 18
 
19 19
     $getPackageSourceFiles = new LocateComposerPackageSourceFiles();
20 20
 
@@ -41,5 +41,5 @@  discard block
 block discarded – undo
41 41
 
42 42
     var_dump(['unknown_symbols' => $unknownSymbols]);
43 43
 
44
-    exit((int) (bool) $unknownSymbols);
44
+    exit((int)(bool)$unknownSymbols);
45 45
 })();
Please login to merge, or discard this patch.