refactor(application-source): use Laravel helpers for null checks

Replace is_null() and !is_null() with blank() and filled() helper functions
for better readability and Laravel idiomatic style.
This commit is contained in:
Andras Bacsai 2026-03-09 17:23:34 +01:00
parent 01aa534556
commit 5b701ebb07

View file

@ -28,7 +28,7 @@
<div class="pb-4">Code source of your application.</div>
<div class="flex flex-col gap-2">
@if (is_null($privateKeyId))
@if (blank($privateKeyId))
<div>Currently connected source: <span
class="font-bold text-warning">{{ data_get($application, 'source.name', 'No source connected') }}</span>
</div>
@ -44,7 +44,7 @@ class="font-bold text-warning">{{ data_get($application, 'source.name', 'No sour
</div>
</div>
@if (!is_null($privateKeyId))
@if (filled($privateKeyId))
<h3 class="pt-4">Deploy Key</h3>
<div class="py-2 pt-4">Currently attached Private Key: <span
class="dark:text-warning">{{ $privateKeyName }}</span>