Skip to content

Commit

Permalink
GH-791 Fix docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
davidszkiba committed Jan 17, 2025
1 parent d75b60e commit 48787e4
Show file tree
Hide file tree
Showing 27 changed files with 1 addition and 32 deletions.
1 change: 0 additions & 1 deletion classes/teststrategy/preselect_task.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ abstract class preselect_task {
* Otherwise, call $next($context) to let the next middleware do its work.
*
* @param array $context The input that can be modified
* @param callable $next Callable that calls the next middleware
* @return result
*/
abstract public function run(array &$context): result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class addscalestandarderror extends preselect_task {
* Run method.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
1 change: 0 additions & 1 deletion classes/teststrategy/preselect_task/checkpagereload.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ final class checkpagereload extends preselect_task {
* Run.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class filterbyquestionsperscale extends preselect_task {

/**
* @var progress
*/
Expand All @@ -53,7 +52,6 @@ class filterbyquestionsperscale extends preselect_task {
* Run method.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class filterbystandarderror extends preselect_task {
* Run method.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
1 change: 0 additions & 1 deletion classes/teststrategy/preselect_task/filterbytestinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ class filterbytestinfo extends preselect_task {
* Run method.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ class firstquestionselector extends preselect_task {
* Run preselect task.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
final class firstquestionselector_testing extends firstquestionselector {

/**
* Gets personparams for adaptivequiz test.
*
Expand Down
1 change: 0 additions & 1 deletion classes/teststrategy/preselect_task/fisherinformation.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ final class fisherinformation extends preselect_task {
* Run preselect task.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ final class lasttimeplayedpenalty extends preselect_task {
* Run preselect task.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ final class maximumquestionscheck extends preselect_task {
* Run preselect task.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
1 change: 0 additions & 1 deletion classes/teststrategy/preselect_task/maybe_return_pilot.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class maybe_return_pilot extends preselect_task {
* Run preselect task.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
final class maybe_return_pilot_testing extends maybe_return_pilot {

/**
* This value is used to return a pilot question.
*/
Expand Down
1 change: 0 additions & 1 deletion classes/teststrategy/preselect_task/mayberemovescale.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ final class mayberemovescale extends preselect_task {
* Run preselect task.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ final class noremainingquestions extends preselect_task {
* Run preselect task.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class numberofgeneralattempts extends preselect_task {
* Run preselect task.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ final class playedincurrentattempt extends preselect_task {
* Run preselect task.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ final class remove_uncalculated extends preselect_task {
* Run preselect task.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ final class removeplayedquestions extends preselect_task {
* Run preselect task.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ final class strategybalancedscore extends preselect_task {
* Run preselect task.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ final class strategyclassicscore extends preselect_task {
* Run preselect task.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ final class strategyfastestscore extends preselect_task {
* Run preselect task.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
1 change: 0 additions & 1 deletion classes/teststrategy/preselect_task/strategyrandom.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ final class strategyrandom extends preselect_task {
* Run preselect task.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
1 change: 0 additions & 1 deletion classes/teststrategy/preselect_task/strategyscore.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ protected function get_scale_ability(int $scaleid): ?float {
* Run preselect task.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ public function set_context(array $context): self {
* Run preselect task.
*
* @param array $context
* @param callable $next
*
* @return result
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class updatepersonability_testing extends updatepersonability {

/**
* Update person param.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ public function test_returns_expected_question_from_expected_catscale(
array $context,
$expected
): void {
$next = fn () => 'nevercalled';
$result = (new strategyfastestscore())->run(
$context,
$next
);
$result = (new strategyfastestscore())->run($context);
$this->assertEquals($expected['id'], $result->unwrap()->id);
}

Expand Down

0 comments on commit 48787e4

Please sign in to comment.