Skip to content

Commit

Permalink
cs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
passchn committed Mar 9, 2024
1 parent 53cc288 commit a4cbb8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/Utilities/ViteManifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ public static function getRecords(ViteHelperConfig $config): ManifestRecords
return new ManifestRecords($manifestArray, $manifestPath);
}

/**
* @param string $pluginName e.g. "MyPlugin"
* @return string filesystem path to the Plugin's manifest.json
*/
protected static function getPluginManifestPath(string $pluginName): string
{
return Plugin::path($pluginName) . 'webroot' . DS . 'manifest.json';
Expand Down
4 changes: 2 additions & 2 deletions src/View/Helper/ViteScriptsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function isDev(?ViteHelperConfig $config = null): bool
* * devEntries (string[]): entry files in development mode
* * other options are rendered as attributes to the html tag
*
* @param string|array $options file entrypoint or script options
* @param array|string $options file entrypoint or script options
* @param \ViteHelper\Utilities\ViteHelperConfig|null $config config instance
* @return void
* @throws \ViteHelper\Exception\ConfigurationException
Expand Down Expand Up @@ -184,7 +184,7 @@ private function productionScript(array $options, ViteHelperConfig $config): voi
* * devEntries (string[]): entry files in development mode
* * other options are rendered as attributes to the html tag
*
* @param string|array $options file entrypoint or css options
* @param array|string $options file entrypoint or css options
* @param \ViteHelper\Utilities\ViteHelperConfig|null $config config instance
* @return void
* @throws \ViteHelper\Exception\ManifestNotFoundException
Expand Down

0 comments on commit a4cbb8f

Please sign in to comment.