@@ -5,8 +5,8 @@ |
||
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__))); |
@@ -1,6 +1,6 @@ |
||
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 | } |
@@ -48,14 +48,14 @@ |
||
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 | } |
@@ -15,7 +15,7 @@ discard block |
||
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 |
||
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 | } |
@@ -61,7 +61,7 @@ discard block |
||
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 |
||
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 |
@@ -1,8 +1,8 @@ |
||
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 | { |