Skip to content

Commit

Permalink
[TASK] Cleanup h5p classes
Browse files Browse the repository at this point in the history
  • Loading branch information
liayn committed May 21, 2024
1 parent 4ef3a00 commit ebbf073
Show file tree
Hide file tree
Showing 4 changed files with 195 additions and 185 deletions.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@
],
"require": {
"php": ">=8.2.0",
"ext-mbstring": "*"
"ext-mbstring": "*",
"ext-zip": "*"
},
"autoload": {
"files": [
"h5p.classes.php",
"h5p-exception.class.php",
"h5p-development.class.php",
"h5p-file-storage.interface.php",
"h5p-default-storage.class.php",
Expand Down
6 changes: 3 additions & 3 deletions h5p-event-base.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function __construct(
* Name of event type
* @param string $sub_type
* Name of event sub type
* @return boolean
* @return bool
*/
private static function validLogLevel($type, $sub_type)
{
Expand All @@ -117,7 +117,7 @@ private static function validLogLevel($type, $sub_type)
* Name of event type
* @param string $sub_type
* Name of event sub type
* @return boolean
* @return bool
*/
private static function validStats($type, $sub_type)
{
Expand All @@ -138,7 +138,7 @@ private static function validStats($type, $sub_type)
* Name of event type
* @param string $sub_type
* Name of event sub type
* @return boolean
* @return bool
*/
private static function isAction($type, $sub_type)
{
Expand Down
8 changes: 8 additions & 0 deletions h5p-exception.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

declare(strict_types=1);

class H5PException extends RuntimeException
{
public array $errors;
}
Loading

0 comments on commit ebbf073

Please sign in to comment.