Skip to content

Commit

Permalink
[BUGFIX] Syntax fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
liayn committed May 21, 2024
1 parent 607448f commit 5b1ed4d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion h5p-default-storage.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 0 additions & 8 deletions h5p-exception.class.php

This file was deleted.

2 changes: 1 addition & 1 deletion h5p-file-storage.interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,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);
Expand Down
4 changes: 2 additions & 2 deletions h5p.classes.php
Original file line number Diff line number Diff line change
Expand Up @@ -3808,7 +3808,7 @@ public function getLocalization() {
'cropImage' => $this->h5pF->t('Crop Image'),
'confirmCrop' => $this->h5pF->t('Confirm Crop'),
'cancelCrop' => $this->h5pF->t('Cancel Crop'),
);
];
}

/**
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5b1ed4d

Please sign in to comment.