Skip to content

Commit

Permalink
Ignore untestable lines
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Jun 27, 2022
1 parent 801992e commit 5911518
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/areas/system/dialogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
'load' => function () {
$license = App::instance()->system()->license();

// @codeCoverageIgnoreStart
// the system is registered but the license
// key is only visible for admins
if ($license === true) {
Expand All @@ -27,7 +28,9 @@
'text' => $license ? $license : I18n::translate('license.unregistered.label'),
'theme' => $license ? 'code' : 'negative',
'help' => $license ?
// @codeCoverageIgnoreStart
'<a href="https://hub.getkirby.com">' . I18n::translate('license.manage') . ' &rarr;</a>' :
// @codeCoverageIgnoreEnd
'<a href="https://getkirby.com/buy">' . I18n::translate('license.buy') . ' &rarr;</a>'
]
],
Expand Down

0 comments on commit 5911518

Please sign in to comment.