Skip to content

Commit c9a071f

Browse files
committed
fix: remove redundant blank line in message
1 parent 7b51a2f commit c9a071f

File tree

8 files changed

+7
-10
lines changed

8 files changed

+7
-10
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ parameters:
33
- message: '#Parameter \#2 \$namespace of method Illuminate\\Support\\ServiceProvider\:\:loadViewsFrom\(\) expects string, mixed given\.#'
44
path: src/Providers/TelegramGitNotifierServiceProvider.php
55

6-
76
- message: '#Parameter \#1 \$token of method CSlant\\TelegramGitNotifier\\Webhook\:\:setToken\(\) expects string, mixed given\.#'
87
path: src/Http/Actions/WebhookAction.php
98

resources/views/events/github/pull_request/closed.blade.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
📢 <b>{{ $pull_request->title }}</b>
2323

2424
🌳 {{ $pull_request->head->ref }} -> {{ $pull_request->base->ref }} 🎯
25-
2625
@include('tg-notifier::events.shared.partials.github._assignees', compact('payload', 'event'))
2726
@include('tg-notifier::events.github.pull_request.partials._reviewers', compact('payload'))
2827
@include('tg-notifier::events.shared.partials.github._body', compact('payload', 'event'))

resources/views/events/github/pull_request/opened.blade.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
📢 <b>{{ $pull_request->title }}</b>
1717

1818
🌳 {{ $pull_request->head->ref }} -> {{ $pull_request->base->ref }} 🎯
19-
2019
@include('tg-notifier::events.shared.partials.github._assignees', compact('payload', 'event'))
2120
@include('tg-notifier::events.github.pull_request.partials._reviewers', compact('payload'))
2221
@include('tg-notifier::events.shared.partials.github._body', compact('payload', 'event'))

resources/views/events/github/pull_request/partials/_reviewers.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
$reviewers[] = "<b>{$reviewer->login}</b>";
1111
}
1212
13-
$textReviewers .= __('tg-notifier::events/github/pull_request.review') . implode(', ', $reviewers). "\n";
13+
$textReviewers .= __('tg-notifier::events/github/pull_request.review') . implode(', ', $reviewers);
1414
}
1515
?>
1616
{!! $textReviewers !!}

resources/views/events/github/pull_request/reopened.blade.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
📢 <b>{{ $pull_request->title }}</b>
1717

1818
🌳 {{ $pull_request->head->ref }} -> {{ $pull_request->base->ref }} 🎯
19-
2019
@include('tg-notifier::events.shared.partials.github._assignees', compact('payload', 'event'))
2120
@include('tg-notifier::events.github.pull_request.partials._reviewers', compact('payload'))
2221
@include('tg-notifier::events.shared.partials.github._body', compact('payload', 'event'))

resources/views/events/github/push/default.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
) !!}
2020

2121
@foreach($payload->commits as $commit)
22-
@php
23-
$commitId = substr($commit->id, -7);
24-
@endphp
22+
@php
23+
$commitId = substr($commit->id, -7);
24+
@endphp
2525
{!! __('tg-notifier::events/github/push.default.commit', [
2626
'commit' => "<a href='$commit->url'>$commitId</a>",
2727
'commit_message' => $commit->message,

resources/views/events/shared/partials/github/_assignees.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
foreach ($payload->{$event}->assignees as $assignee) {
1111
$assigneeArray[] = "<a href=\"{$assignee->html_url}\">@{$assignee->login}</a> ";
1212
}
13-
$assigneeText .= implode(', ', $assigneeArray)."\n";
13+
$assigneeText .= implode(', ', $assigneeArray);
1414
}
1515
?>
1616
{!! $assigneeText ?? '' !!}

resources/views/events/shared/partials/github/_body.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* @var $event string
55
*/
66
7+
$html = '';
78
if (isset($event) && isset($payload) && !empty($payload->{$event}->body)) {
89
$body = $payload->{$event}->body;
910
if (strlen($body) > 50) {
@@ -13,4 +14,4 @@
1314
$html = __('tg-notifier::events/shared/github._body.title', ['body' => $body])."\n{$body}";
1415
}
1516
?>
16-
{!! $html ?? '' !!}
17+
{!! htmlentities($html) !!}

0 commit comments

Comments
 (0)