cslant/laravel-telegram-git-notifier

View on GitHub
resources/views/events/gitlab/merge_request/partials/_reviewers.blade.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * @var object $payload
 */

$textReviewers = '';
if (isset($payload->reviewers) && count($payload->reviewers) > 0) {
    $reviewers = [];
    foreach ($payload->reviewers as $reviewer) {
        $reviewers[] = "<b>{$reviewer->name}</b>";
    }

    $textReviewers .= '👥' . __('tg-notifier::events/gitlab/merge_request.review') . implode(', ', $reviewers);
}
?>
{!! $textReviewers !!}