Skip to content

Commit 0e3d5ce

Browse files
committed
Fix remaining PHPCS warnings
1 parent 2cb8b64 commit 0e3d5ce

File tree

8 files changed

+12
-3
lines changed

8 files changed

+12
-3
lines changed

classes/view_controller.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,6 @@ public static function handle_folder_form_submitted(
300300
) {
301301
foreach ($userfolders as $groupid => $form) {
302302
// Iterate over forms to find the submitted one (is_submitted() is implicit in get_data()).
303-
/* @var name_form $form */
304303
if ($fromform = $form->get_data()) {
305304
// TODO handle exception cases properly!
306305
self::share_folder_with_user(

lib.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ function collaborativefolders_add_instance(stdClass $collaborativefolders, mod_c
8787
* @param mod_collaborativefolders_mod_form|null $mform The form instance itself (if needed)
8888
* @return boolean Success/Fail
8989
*/
90-
function collaborativefolders_update_instance(stdClass $collaborativefolders, mod_collaborativefolders_mod_form|null $mform = null) {
90+
function collaborativefolders_update_instance(
91+
stdClass $collaborativefolders,
92+
mod_collaborativefolders_mod_form|null $mform = null
93+
) {
9194
global $DB;
9295

9396
$collaborativefolders->timemodified = time();

tests/events_test.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
* @group mod_collaborativefolders
2525
* @copyright 2017 Project seminar (Learnweb, University of Münster)
2626
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27+
* @covers \mod_collaborativefolders\event\course_module_viewed
28+
* @covers \mod_collaborativefolders\event\course_module_instance_list_viewed
29+
* @covers \mod_collaborativefolders\event\link_generated
2730
*/
2831
final class events_test extends \advanced_testcase {
2932
/** @var null|array data array containing groupings, course and instance information. */

tests/issuer_management_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
/**
3232
* Test cases for issuer_management.
33+
* @covers \mod_collaborativefolders\issuer_management
3334
*/
3435
final class issuer_management_test extends \advanced_testcase {
3536
public function setUp(): void {
@@ -66,7 +67,6 @@ public function test_create_issuer(): void {
6667
*/
6768
public function test_validate_issuer(): void {
6869
static::setAdminUser();
69-
/* @var \mod_collaborativefolders_generator $generator */
7070
$generator = $this->getDataGenerator()->get_plugin_generator('mod_collaborativefolders');
7171

7272
// Validate a correct issuer first.

tests/privacy_provider_test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
/**
3131
* Test cases for the privacy provider.
32+
* @covers \mod_collaborativefolders\privacy\provider
3233
*/
3334
final class privacy_provider_test extends \core_privacy\tests\provider_testcase {
3435
/** @var \stdClass The student objects. */

tests/systemfolderaccess_test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
/**
3333
* Tests cases for system_folder_access.
34+
* @covers \mod_collaborativefolders\local\clients\system_folder_access
3435
*/
3536
final class systemfolderaccess_test extends \advanced_testcase {
3637
/**

tests/toolbox_test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public function setUp(): void {
3636

3737
/**
3838
* Test fake course group creation
39+
* @covers \mod_collaborativefolders\toolbox::fake_course_group
3940
*/
4041
public function test_fake_course_group(): void {
4142
$fakegroup = \mod_collaborativefolders\toolbox::fake_course_group('fakename');

tests/userfolderaccess_test.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
/**
2929
* Test cases for user_folder_access.
30+
* @covers \mod_collaborativefolders\local\clients\user_folder_access
3031
*/
3132
final class userfolderaccess_test extends \advanced_testcase {
3233
/**

0 commit comments

Comments
 (0)