1
0
mirror of https://github.com/flarum/core.git synced 2025-08-18 06:11:23 +02:00

Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot
2024-09-26 15:55:20 +00:00
parent 24e88d12b8
commit e43530e40a
44 changed files with 155 additions and 140 deletions

View File

@@ -40,6 +40,7 @@ class AddCanFlagAttribute
// If $actor is the post author, check to see if the setting is enabled
return (bool) $this->settings->get('flarum-flags.can_flag_own');
}
// $actor is not the post author
return true;
}

View File

@@ -31,10 +31,10 @@ class FlagSerializer extends AbstractSerializer
}
return [
'type' => $flag->type,
'reason' => $flag->reason,
'type' => $flag->type,
'reason' => $flag->reason,
'reasonDetail' => $flag->reason_detail,
'createdAt' => $this->formatDate($flag->created_at),
'createdAt' => $this->formatDate($flag->created_at),
];
}