Skip to content

Commit

Permalink
MDL-16236 & operator is often not needed in PHP5 in method definition
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Aug 27, 2008
1 parent d7d8753 commit 91537a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/completionlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ public function get_progress_all($sortfirstname=false, $groupid=0) {
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
Expand Down Expand Up @@ -682,11 +682,11 @@ public function inform_grade_changed($cm, &$item, &$grade, $deleted) {
* <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;
}
Expand Down

0 comments on commit 91537a8

Please sign in to comment.