]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-16236 & operator is often not needed in PHP5 in method definition
authorskodak <skodak>
Wed, 27 Aug 2008 20:52:48 +0000 (20:52 +0000)
committerskodak <skodak>
Wed, 27 Aug 2008 20:52:48 +0000 (20:52 +0000)
lib/completionlib.php

index 58eede1cb87c6e9b8fe0d3d40079bb9717e81412..7e7f7b29d6d89af466d849e7834ef2b13ee4b615 100644 (file)
@@ -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
      * <p>
      * (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;
         }