app/Module/UserMessagesModule.php
Method getBlock
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getBlock(Tree $tree, int $block_id, string $context, array $config = []): string
{
$messages = DB::table('message')
->where('user_id', '=', Auth::id())
->orderByDesc('message_id')