Skip to content

Commit

Permalink
fix: Set theme forlder name in lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
gaetan-hexadog committed Oct 3, 2020
1 parent be61fe3 commit aec3bce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ThemeInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ protected function getBaseInstallationPath()

/**
* Get the theme name
* "something" => "Something"
* "vendor-name/something" => "Something"
* "vendor-name/something-theme" => "Something"
* "something" => "something"
* "vendor-name/something" => "something"
* "vendor-name/something-theme" => "something"
* @param PackageInterface $package
* @return string
* @throws \Exception
Expand All @@ -59,7 +59,7 @@ protected function getThemeName(PackageInterface $package)

$splitNameToUse = explode("-", count($split) >= 2 ? $split[1] : $split[0]);

return implode('', array_map('ucfirst', array_filter($splitNameToUse, function ($value) {
return implode('', array_map('strtolower', array_filter($splitNameToUse, function ($value) {
return $value !== "theme";
})));
}
Expand Down

0 comments on commit aec3bce

Please sign in to comment.