Skip to content

Commit

Permalink
code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
garemoko committed Mar 20, 2019
1 parent 4b555a8 commit 8fa1eea
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/transformer/events/mod_assign/assignment_graded.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,15 @@ function assignment_graded(array $config, \stdClass $event) {
$lang = utils\get_course_lang($course);

$gradecomment = null;

try {
$gradecomment = $repo->read_record('assignfeedback_comments', [
'assignment' => $grade->assignment,
'grade' => $grade->id
])->commenttext;
} catch (Exception $e) {
// No comment on the grade
$gradecomment = null;
}

$gradeitems = $repo->read_record('grade_items', [
'itemmodule' => 'assign',
'iteminstance' => $grade->assignment
Expand Down Expand Up @@ -92,7 +91,7 @@ function assignment_graded(array $config, \stdClass $event) {
]
];

if (!is_null($gradecomment)){
if (!is_null($gradecomment)) {
$statement['result']['response'] = $gradecomment;
}

Expand Down

0 comments on commit 8fa1eea

Please sign in to comment.