Skip to content

Commit

Permalink
Fixed type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Stazer committed Apr 10, 2018
1 parent 3295767 commit ac2fc3d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion classes/task/cron_task.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function execute() {
if ($ratingallocate->ratingallocate->runalgorithmbycron === "1" &&
$ratingallocate->get_algorithm_status() === \mod_ratingallocate\algorithm_status::notstarted) {
// Run allocation.
$ratingallocate->distrubute_choices();
$ratingallocate->distribute_choices();
}
}
return true;
Expand Down
2 changes: 1 addition & 1 deletion tests/generator/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public function __construct(advanced_testcase $tc, $moduledata = null, $choiceda
// allocate choices
$ratingallocate = mod_ratingallocate_generator::get_ratingallocate_for_user($tc,
$this->moddb, $this->teacher);
$timeneeded = $ratingallocate->distrubute_choices();
$timeneeded = $ratingallocate->distribute_choices();
$tc->assertGreaterThan(0, $timeneeded);
$tc->assertLessThan(1.0, $timeneeded, 'Allocation is very slow');
$this->allocations = $ratingallocate->get_allocations();
Expand Down
2 changes: 1 addition & 1 deletion tests/locallib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function test_simple() {

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

Expand Down
2 changes: 1 addition & 1 deletion tests/user_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function test_add_one_selected_group() {
*/
public function test_add_already_selected_group() {
$this->user->add_selected_group($this->group1);
$this->user->add_selected_grou fuer die Hilfe!p($this->group1);
$this->user->add_selected_group($this->group1);
}

/**
Expand Down

0 comments on commit ac2fc3d

Please sign in to comment.