Completed
Push — master ( e36450...afb05a )
by Josh
02:57
created
src/functions_internal.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -5,8 +5,8 @@
 block discarded – undo
5 5
 {
6 6
     $packagePath = dirname(__DIR__);
7 7
 
8
-    if (is_dir($packagePath . DIRECTORY_SEPARATOR . 'vendor')) {
9
-        return $packagePath . DIRECTORY_SEPARATOR . 'vendor';
8
+    if (is_dir($packagePath.DIRECTORY_SEPARATOR.'vendor')) {
9
+        return $packagePath.DIRECTORY_SEPARATOR.'vendor';
10 10
     }
11 11
 
12 12
     return dirname(dirname(dirname(__DIR__)));
Please login to merge, or discard this patch.
src/functions_include.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 if (!function_exists('Composed\getPackages')) {
4
-    require __DIR__ . '/functions_internal.php';
5
-    require __DIR__ . '/functions.php';
4
+    require __DIR__.'/functions_internal.php';
5
+    require __DIR__.'/functions.php';
6 6
 }
Please login to merge, or discard this patch.
src/PackageCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,14 +48,14 @@
 block discarded – undo
48 48
         }
49 49
 
50 50
         $config = @array_map(
51
-            function (AbstractPackage $package) use ($keys, $default) {
51
+            function(AbstractPackage $package) use ($keys, $default) {
52 52
                 return $package->getConfig($keys, $default);
53 53
             },
54 54
             $this->packages
55 55
         );
56 56
 
57 57
         if (2 > func_num_args()) {
58
-            $config = array_filter($config, function ($value) use ($default) {
58
+            $config = array_filter($config, function($value) use ($default) {
59 59
                 return $value !== $default;
60 60
             });
61 61
         }
Please login to merge, or discard this patch.
src/RootPackage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
     public static function createFromPath(string $dirPath) : self
17 17
     {
18
-        return new static($dirPath, JsonObject::fromFilePath($dirPath . DIRECTORY_SEPARATOR . 'composer.json'));
18
+        return new static($dirPath, JsonObject::fromFilePath($dirPath.DIRECTORY_SEPARATOR.'composer.json'));
19 19
     }
20 20
 
21 21
     /**
@@ -53,6 +53,6 @@  discard block
 block discarded – undo
53 53
 
54 54
     public function getVendorPath(string $relativePath = '') : string
55 55
     {
56
-        return $this->getPath($this->getVendorDir() . (strlen($relativePath) ? DIRECTORY_SEPARATOR . $relativePath : ''));
56
+        return $this->getPath($this->getVendorDir().(strlen($relativePath) ? DIRECTORY_SEPARATOR.$relativePath : ''));
57 57
     }
58 58
 }
Please login to merge, or discard this patch.
src/AbstractPackage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     public function getPath(string $relativePath = '') : string
63 63
     {
64
-        return $this->dirPath . (strlen($relativePath) ? DIRECTORY_SEPARATOR . $relativePath : '');
64
+        return $this->dirPath.(strlen($relativePath) ? DIRECTORY_SEPARATOR.$relativePath : '');
65 65
     }
66 66
 
67 67
     /**
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         if (null === $this->directDependencies) {
95 95
             $packageNames = array_keys($this->getConfig('require', $default = []));
96 96
             $packages = @array_map(
97
-                function ($packageName) {
97
+                function($packageName) {
98 98
                     return $this->root->getPackages()->getPackage($packageName);
99 99
                 },
100 100
                 $packageNames
Please login to merge, or discard this patch.
src/functions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Composed;
3 3
 
4
-define(__NAMESPACE__ . '\VENDOR_DIR', Internal\findVendorDir());
5
-define(__NAMESPACE__ . '\BASE_DIR', Internal\findBaseDir(VENDOR_DIR));
4
+define(__NAMESPACE__.'\VENDOR_DIR', Internal\findVendorDir());
5
+define(__NAMESPACE__.'\BASE_DIR', Internal\findBaseDir(VENDOR_DIR));
6 6
 
7 7
 function packages($includeRoot = true) : PackageCollection
8 8
 {
Please login to merge, or discard this patch.