From 5b1ed4d84c8a6dd9c663d999e9767cac0e554313 Mon Sep 17 00:00:00 2001 From: Markus Klein Date: Tue, 21 May 2024 16:04:11 +0200 Subject: [PATCH] [BUGFIX] Syntax fixes --- h5p-default-storage.class.php | 2 +- h5p-exception.class.php | 8 -------- h5p-file-storage.interface.php | 2 +- h5p.classes.php | 4 ++-- 4 files changed, 4 insertions(+), 12 deletions(-) delete mode 100644 h5p-exception.class.php diff --git a/h5p-default-storage.class.php b/h5p-default-storage.class.php index c7cf4522..94aa8855 100644 --- a/h5p-default-storage.class.php +++ b/h5p-default-storage.class.php @@ -325,7 +325,7 @@ public function getContent($file_path) * Save files uploaded through the editor. * The files must be marked as temporary until the content form is saved. * - * @param H5peditorFile $file + * @param \H5peditorFile $file * @param int $contentid */ public function saveFile($file, $contentId) diff --git a/h5p-exception.class.php b/h5p-exception.class.php deleted file mode 100644 index a93da6b5..00000000 --- a/h5p-exception.class.php +++ /dev/null @@ -1,8 +0,0 @@ - $this->h5pF->t('Crop Image'), 'confirmCrop' => $this->h5pF->t('Confirm Crop'), 'cancelCrop' => $this->h5pF->t('Cancel Crop'), - ); + ]; } /** @@ -4534,7 +4534,7 @@ public function validateList(&$list, $semantics) { // Validate each element in list. foreach ($list as $key => &$value) { if (!is_int($key)) { - array_splice($list, $key, 1); + array_splice($list, (int)$key, 1); continue; } $this->$function($value, $field);