Skip to content

Commit 7c283c2

Browse files
tillkrusstaylorotwell
authored andcommitted
Use @Isset directive (#18817)
1 parent 1660cee commit 7c283c2

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/Illuminate/Mail/resources/views/html/message.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
{{ $slot }}
1111

1212
{{-- Subcopy --}}
13-
@if (isset($subcopy))
13+
@isset($subcopy)
1414
@slot('subcopy')
1515
@component('mail::subcopy')
1616
{{ $subcopy }}
1717
@endcomponent
1818
@endslot
19-
@endif
19+
@endisset
2020

2121
{{-- Footer --}}
2222
@slot('footer')
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{!! strip_tags($header) !!}
22

33
{!! strip_tags($slot) !!}
4-
@if (isset($subcopy))
4+
@isset($subcopy)
55

66
{!! strip_tags($subcopy) !!}
7-
@endif
7+
@endisset
88

99
{!! strip_tags($footer) !!}

src/Illuminate/Mail/resources/views/markdown/message.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
{{ $slot }}
1111

1212
{{-- Subcopy --}}
13-
@if (isset($subcopy))
13+
@isset($subcopy)
1414
@slot('subcopy')
1515
@component('mail::subcopy')
1616
{{ $subcopy }}
1717
@endcomponent
1818
@endslot
19-
@endif
19+
@endisset
2020

2121
{{-- Footer --}}
2222
@slot('footer')

src/Illuminate/Notifications/resources/views/email.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
@endforeach
1818

1919
{{-- Action Button --}}
20-
@if (isset($actionText))
20+
@isset($actionText)
2121
<?php
2222
switch ($level) {
2323
case 'success':
@@ -33,7 +33,7 @@
3333
@component('mail::button', ['url' => $actionUrl, 'color' => $color])
3434
{{ $actionText }}
3535
@endcomponent
36-
@endif
36+
@endisset
3737

3838
{{-- Outro Lines --}}
3939
@foreach ($outroLines as $line)
@@ -49,10 +49,10 @@
4949
@endif
5050

5151
<!-- Subcopy -->
52-
@if (isset($actionText))
52+
@isset($actionText)
5353
@component('mail::subcopy')
5454
If you’re having trouble clicking the "{{ $actionText }}" button, copy and paste the URL below
5555
into your web browser: [{{ $actionUrl }}]({{ $actionUrl }})
5656
@endcomponent
57-
@endif
57+
@endisset
5858
@endcomponent

0 commit comments

Comments
 (0)