Skip to content

Commit

Permalink
lint psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHenryIE committed Jan 30, 2021
1 parent 4325887 commit fe4702e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Composer/Autoload/NamespaceAutoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
5 changes: 2 additions & 3 deletions src/Mover.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fe4702e

Please sign in to comment.