Skip to content

Commit

Permalink
Address a few more minor comments reported by CI
Browse files Browse the repository at this point in the history
  • Loading branch information
FMCorz committed Apr 23, 2024
1 parent bdaf45d commit bbc2016
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ jobs:

- name: Moodle Code Checker
if: ${{ !cancelled() }}
run: moodle-plugin-ci phpcs --max-warnings 0
run: moodle-plugin-ci phpcs --max-warnings 0 --exclude moodle.Commenting.MissingDocblock

# - name: Moodle PHPDoc Checker
# if: ${{ !cancelled() }}
Expand Down
2 changes: 1 addition & 1 deletion classes/local/setting/compatibility_check_setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ protected function get_html_content() {

$blockxp = $pluginman->get_plugin_info('block_xp');
$localxp = $pluginman->get_plugin_info('local_xp');
$recentishlocalxp = 2023100800; // v1.15.0.
$recentishlocalxp = 2023100800; // Version 1.15.0.
$humanbranch = moodle_major_version() ?: 'v?';

if ($localxp && $localxp->versiondb < $recentishlocalxp) {
Expand Down
5 changes: 1 addition & 4 deletions classes/local/xp/algo_levels_info.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ class algo_levels_info implements levels_info, levels_info_with_algo {
/** @var array The metadata keys. */
protected $metadatakeys = [];

/**
* @var bool Used algo?
* @deprecated Since Level Up XP 3.15 without replacement.
*/
/** @var bool Used algo? Deprecated since Level Up XP 3.15 without replacement. */
protected $usealgo = false;

/**
Expand Down
5 changes: 3 additions & 2 deletions tests/php_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
namespace block_xp;

use block_xp\tests\base_testcase;
use Generator;

defined('MOODLE_INTERNAL') || die();

Expand All @@ -46,7 +47,7 @@ final class php_test extends base_testcase {
*
* @return array
*/
public static function php_files_provider() {
public static function php_files_provider(): Generator {
global $CFG;

$xproot = $CFG->dirroot . '/blocks/xp';
Expand Down Expand Up @@ -80,7 +81,7 @@ public static function php_files_provider() {
* @dataProvider php_files_provider
* @covers \block_xp\di
*/
public function test_file_inclusion($relpath) {
public function test_file_inclusion($relpath): void {
global $CFG, $DB;
try {
require_once($CFG->dirroot . '/blocks/xp' . $relpath);
Expand Down

0 comments on commit bbc2016

Please sign in to comment.