Skip to content

Commit

Permalink
Make codechecker happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
abias committed Aug 18, 2024
1 parent ee14f7f commit d77ad50
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class provider implements \core_privacy\local\metadata\provider,
* @param collection $collection The initialised collection to add items to.
* @return collection A listing of user data stored through this system.
*/
public static function get_metadata(collection $collection) : collection {
public static function get_metadata(collection $collection): collection {
$collection->link_subsystem('block', 'privacy:metadata:block');

return $collection;
Expand All @@ -63,7 +63,7 @@ public static function get_metadata(collection $collection) : collection {
* @param int $userid The user to search.
* @return contextlist $contextlist The contextlist containing the list of contexts used in this plugin.
*/
public static function get_contexts_for_userid(int $userid) : \core_privacy\local\request\contextlist {
public static function get_contexts_for_userid(int $userid): \core_privacy\local\request\contextlist {
// This block doesn't know who information is stored against unless it
// is at the user context.
$contextlist = new \core_privacy\local\request\contextlist();
Expand Down
2 changes: 1 addition & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function block_cohortspecifichtml_global_db_replace($search, $replace) {
* @param array $args The path (the part after the filearea and before the filename).
* @return array The itemid and the filepath inside the $args path, for the defined filearea.
*/
function block_cohortspecifichtml_get_path_from_pluginfile(string $filearea, array $args) : array {
function block_cohortspecifichtml_get_path_from_pluginfile(string $filearea, array $args): array {
// This block never has an itemid (the number represents the revision but it's not stored in database).
array_shift($args);

Expand Down
1 change: 1 addition & 0 deletions tests/block_cohortspecifichtml_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* @package block_cohortspecifichtml
* @copyright 2023 Alexander Bias <[email protected]>
* based on code from 2022 Open LMS (https://www.openlms.net/) Petr Skoda
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*
* @coversDefaultClass \block_cohortspecifichtml
*/
Expand Down

0 comments on commit d77ad50

Please sign in to comment.