diff --git a/src/Composer/Autoload/NamespaceAutoloader.php b/src/Composer/Autoload/NamespaceAutoloader.php index 669b02c8..b073eb69 100644 --- a/src/Composer/Autoload/NamespaceAutoloader.php +++ b/src/Composer/Autoload/NamespaceAutoloader.php @@ -21,7 +21,7 @@ abstract class NamespaceAutoloader implements Autoloader /** * A package's composer.json config autoload key's value, where $key is `psr-0`|`psr-4`|`classmap`. * - * @param stdClass[] $autoloadConfig + * @param $autoloadConfig * * @return void */ diff --git a/src/Mover.php b/src/Mover.php index 4bf4e296..cd23ffd7 100644 --- a/src/Mover.php +++ b/src/Mover.php @@ -198,14 +198,13 @@ public function moveFile(Package $package, $autoloader, $file, $path = '') $namespacePath = $this->clean($autoloader->getNamespacePath()); // TODO: Should $path come from the NameSpaceAutoloader object? - $sourceVendorPath = $this->clean('vendor' . DIRECTORY_SEPARATOR . $packageName + $sourceVendorPath = $this->clean('vendor' . DIRECTORY_SEPARATOR . $packageName . DIRECTORY_SEPARATOR . $path); - $destinationMozartPath = $this->dep_directory . DIRECTORY_SEPARATOR . $namespacePath; + $destinationMozartPath = $this->dep_directory . DIRECTORY_SEPARATOR . $namespacePath; $targetFilePath = str_ireplace($sourceVendorPath, $destinationMozartPath, $sourceFilePath); } else { - $sourceVendorPath = 'vendor' . DIRECTORY_SEPARATOR . $packageName; $destinationMozartPath = $this->classmap_directory . DIRECTORY_SEPARATOR . $packageName;