Skip to content

Commit

Permalink
fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
daVitekPL committed Jul 9, 2024
1 parent e5a63de commit 621b1fc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Repositories/H5PFileStorageRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public function exportContent($id, $target)

public function exportLibrary($library, $target, $developmentPath = NULL)
{
$folder = \H5PCore::libraryToString($library, TRUE);
$folder = \H5PCore::libraryToString($library);
$srcPath = ($developmentPath === NULL ? "/libraries/{$folder}" : $developmentPath);
$this->copyFiles("{$this->path}{$srcPath}", "{$target}/{$folder}");
}
Expand Down
1 change: 1 addition & 0 deletions src/Repositories/H5PRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -1370,6 +1370,7 @@ public function replaceContentHubMetadataCache($metadata, $lang)
* @param string $lang Language code in ISO 639-1
*
*/
// @phpstan-ignore-next-line
public function getContentHubMetadataCache($lang = 'en')
{
}
Expand Down
1 change: 0 additions & 1 deletion src/Services/HeadlessH5PService.php
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,6 @@ public function getContentTypeCache(): array
public function getUpdatedContentHubMetadataCache()
{
$lang = config('hh5p.language');
// @phpstan-ignore-next-line
return $this->getCore()->getUpdatedContentHubMetadataCache($lang);
}

Expand Down

0 comments on commit 621b1fc

Please sign in to comment.