Skip to content

Commit ac2fc3d

Browse files
committed
Fixed type errors
1 parent 3295767 commit ac2fc3d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

classes/task/cron_task.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function execute() {
7373
if ($ratingallocate->ratingallocate->runalgorithmbycron === "1" &&
7474
$ratingallocate->get_algorithm_status() === \mod_ratingallocate\algorithm_status::notstarted) {
7575
// Run allocation.
76-
$ratingallocate->distrubute_choices();
76+
$ratingallocate->distribute_choices();
7777
}
7878
}
7979
return true;

tests/generator/lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public function __construct(advanced_testcase $tc, $moduledata = null, $choiceda
319319
// allocate choices
320320
$ratingallocate = mod_ratingallocate_generator::get_ratingallocate_for_user($tc,
321321
$this->moddb, $this->teacher);
322-
$timeneeded = $ratingallocate->distrubute_choices();
322+
$timeneeded = $ratingallocate->distribute_choices();
323323
$tc->assertGreaterThan(0, $timeneeded);
324324
$tc->assertLessThan(1.0, $timeneeded, 'Allocation is very slow');
325325
$this->allocations = $ratingallocate->get_allocations();

tests/locallib_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function test_simple() {
9595

9696
// Allocate choices.
9797
$ratingallocate = mod_ratingallocate_generator::get_ratingallocate_for_user($this, $mod, $teacher);
98-
$timeneeded = $ratingallocate->distrubute_choices();
98+
$timeneeded = $ratingallocate->distribute_choices();
9999
$this->assertGreaterThan(0, $timeneeded);
100100
$this->assertLessThan(0.1, $timeneeded, 'Allocation is very slow');
101101

tests/user_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function test_add_one_selected_group() {
8484
*/
8585
public function test_add_already_selected_group() {
8686
$this->user->add_selected_group($this->group1);
87-
$this->user->add_selected_grou fuer die Hilfe!p($this->group1);
87+
$this->user->add_selected_group($this->group1);
8888
}
8989

9090
/**

0 commit comments

Comments
 (0)