• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SameOldNick / SameOldWebsite / 20218987083

15 Dec 2025 02:57AM UTC coverage: 87.51% (-0.2%) from 87.681%
20218987083

push

github

SameOldNick
Set default value for topic in fromArray method

The fromArray method now assigns an empty string as the default value for 'topic' if it is not present in the input array. This prevents potential undefined index errors.

1 of 1 new or added line in 1 file covered. (100.0%)

117 existing lines in 10 files now uncovered.

28509 of 32578 relevant lines covered (87.51%)

696.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/app/Components/Backup/Concerns/PullsNotificationConfiguration.php
1
<?php
2

3
namespace App\Components\Backup\Concerns;
4

5
use Illuminate\Notifications\Messages\MailMessage;
6
use Illuminate\Notifications\Messages\SlackMessage;
7
use Ntfy\Message as NtfyMessage;
8
use Spatie\Backup\Notifications\Channels\Discord\DiscordMessage;
9

10
trait PullsNotificationConfiguration
11
{
12
    use ApplyNotificationConfiguration;
13

14
    /**
15
     * Get the notification channels.
16
     */
17
    public function via(): array
18
    {
UNCOV
19
        return $this->getConfigurationProvider()->channels(static::class);
×
20
    }
21

22
    /**
23
     * Apply configuration to each mail notification channel message.
24
     */
25
    public function toMail(): MailMessage
26
    {
UNCOV
27
        return $this->applyConfigurationToMailMessage(parent::toMail());
×
28
    }
29

30
    /**
31
     * Apply configuration to each Slack notification channel message.
32
     */
33
    public function toSlack(): SlackMessage
34
    {
UNCOV
35
        return $this->applyConfigurationToSlackMessage(parent::toSlack());
×
36
    }
37

38
    /**
39
     * Apply configuration to each Discord notification channel message.
40
     */
41
    public function toDiscord(): DiscordMessage
42
    {
UNCOV
43
        return $this->applyConfigurationToDiscordMessage(parent::toDiscord());
×
44
    }
45

46
    /**
47
     * Apply configuration to each Ntfy notification channel message.
48
     */
49
    public function toNtfy($notifiable): NtfyMessage
50
    {
UNCOV
51
        return $this->applyConfigurationToNtfyMessage(parent::toNtfy($notifiable));
×
52
    }
53
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc