GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#11)
by TJ
02:09
created

SuccessMessage::withLinkToNotice()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 30

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 30
rs 9.44
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Honeybadger\HoneybadgerLaravel\Commands;
4
5
class SuccessMessage
6
{
7
    /**
8
     * Success message without links to notices.
9
     *
10
     * @return string
11
     */
12
    public static function withoutLinkToNotices() : string
13
    {
14
        return <<<'EX'
15
16
⚡ --- Honeybadger is installed! -----------------------------------------------
17
If you ever need help:
18
19
    - Check out the documentation: https://docs.honeybadger.io/lib/php/index.html
20
    - Email the 'badgers: [email protected]
21
22
Most people don't realize that Honeybadger is a small, bootstrapped company. We
23
really couldn't do this without you. Thank you for allowing us to do what we
24
love: making developers awesome.
25
26
Happy 'badgering!
27
28
Sincerely,
29
Ben, Josh and Starr
30
https://www.honeybadger.io/about/
31
⚡ --- End --------------------------------------------------------------------
32
33
EX;
34
    }
35
36
    /**
37
     * Success message with links to notices.
38
     *
39
     * @param  string  $noticeId
40
     * @return string
41
     */
42
    public static function withLinkToNotice(string $noticeId) : string
43
    {
44
        $message = <<<'EX'
45
46
⚡ --- Honeybadger is installed! -----------------------------------------------
47
Good news: You're one deploy away from seeing all of your exceptions in
48
Honeybadger. For now, we've generated a test exception for you:
49
50
    https://app.honeybadger.io/notice/%s
51
52
If you ever need help:
53
54
    - Check out the documentation: https://docs.honeybadger.io/lib/php/index.html
55
    - Email the 'badgers: [email protected]
56
57
Most people don't realize that Honeybadger is a small, bootstrapped company. We
58
really couldn't do this without you. Thank you for allowing us to do what we
59
love: making developers awesome.
60
61
Happy 'badgering!
62
63
Sincerely,
64
Ben, Josh and Starr
65
https://www.honeybadger.io/about/
66
⚡ --- End --------------------------------------------------------------------
67
68
EX;
69
70
        return sprintf($message, $noticeId);
71
    }
72
}
73