Skip to content

Commit

Permalink
[TASK] Cleanup h5p development
Browse files Browse the repository at this point in the history
  • Loading branch information
liayn committed May 21, 2024
1 parent e735221 commit 331575b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions h5p-development.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ class H5PDevelopment {
public const MODE_CONTENT = 1;
public const MODE_LIBRARY = 2;

private $h5pF, $libraries, $language, $filesPath;
private H5PFrameworkInterface $h5pF;

private $libraries, $language, $filesPath;

/**
* Constructor.
*
* @param H5PFrameworkInterface|object $H5PFramework
* @param H5PFrameworkInterface $H5PFramework
* The frameworks implementation of the H5PFrameworkInterface
* @param string $filesPath
* Path to where H5P should store its files
Expand All @@ -39,7 +41,7 @@ public function __construct(H5PFrameworkInterface $H5PFramework, $filesPath, $la
* Get contents of file.
*
* @param string $file File path.
* @return mixed String on success or NULL on failure.
* @return string|null String on success or NULL on failure.
*/
private function getFileContents($file) {
if (file_exists($file) === FALSE) {
Expand Down Expand Up @@ -183,7 +185,7 @@ public function getLanguage($name, $majorVersion, $minorVersion, $language) {
* Writes library as string on the form "name majorVersion.minorVersion"
*
* @param string $name Machine readable library name
* @param integer $majorVersion
* @param int $majorVersion
* @param $minorVersion
* @return string Library identifier.
*/
Expand Down

0 comments on commit 331575b

Please sign in to comment.