From 91537a888d790f39e734a63c06f6439b2b7877bf Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 27 Aug 2008 20:52:48 +0000 Subject: [PATCH] MDL-16236 & operator is often not needed in PHP5 in method definition --- lib/completionlib.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/completionlib.php b/lib/completionlib.php index 58eede1cb8..7e7f7b29d6 100644 --- a/lib/completionlib.php +++ b/lib/completionlib.php @@ -652,7 +652,7 @@ WHERE return $result; } - public function inform_grade_changed($cm, &$item, &$grade, $deleted) { + public function inform_grade_changed($cm, $item, $grade, $deleted) { // Bail out now if completion is not enabled for course-module, grade // is not used to compute completion, or this is a different numbered // grade @@ -682,11 +682,11 @@ WHERE *

* (Internal function. Not private, so we can unit-test it.) * - * @param grade_item &$item - * @param grade_grade &$grade + * @param grade_item $item + * @param grade_grade $grade * @return int Completion state e.g. COMPLETION_INCOMPLETE */ - function internal_get_grade_state(&$item, &$grade) { + function internal_get_grade_state($item, $grade) { if (!$grade) { return COMPLETION_INCOMPLETE; } -- 2.39.5