mirror of
https://github.com/moodle/moodle.git
synced 2025-04-25 10:26:17 +02:00
MDL-16236 & operator is often not needed in PHP5 in method definition
This commit is contained in:
parent
d7d875359f
commit
91537a888d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user