Skip to content

Commit

Permalink
Linting of arrays and return types
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusgreen committed Oct 24, 2024
1 parent d381dba commit 3a6fbb9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.

/**
* Privacy class for Moodle Gapfill question type.
*
Expand All @@ -37,7 +38,7 @@ class provider implements
*
* @return string
*/
public static function get_reason() : string {
public static function get_reason(): string {
return 'privacy:null_reason';
}
}
8 changes: 4 additions & 4 deletions db/access.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
'tool/driprelease:view' => [
'captype' => 'read',
'contextlevel' => CONTEXT_MODULE,
'archetypes' => array(
'archetypes' => [
'editingteacher' => CAP_ALLOW,
'manager' => CAP_ALLOW
),
'clonepermissionsfrom' => 'moodle/course:manageactivities'
]
],
'clonepermissionsfrom' => 'moodle/course:manageactivities',
],
];
1 change: 1 addition & 0 deletions tests/driprelease_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ final class driprelease_test extends \advanced_testcase {
public $fromform;

public function setUp(): void {
parent::setUp();
global $CFG, $DB;
$this->driprelease = new driprelease();
// Create course with availability enabled.
Expand Down

0 comments on commit 3a6fbb9

Please sign in to comment.