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.

Code Duplication    Length = 9-10 lines in 2 locations

src/Notifications/CheckerHasFailed.php 1 location

@@ 40-49 (lines=10) @@
37
     *
38
     * @return array
39
     */
40
    protected function data(): array
41
    {
42
        return [
43
            'application_name'  => config('app.name') ?: 'Your application',
44
            'checker_type'      => get_class($this->checker),
45
            'failure_count'     => count($this->failedData['failed_at']),
46
            'failed_at'         => Carbon::createFromTimestamp($this->failedData['failed_at'][0]),
47
            'exception_message' => $this->exception->getMessage(),
48
        ];
49
    }
50
51
    /**
52
     * Build the mail representation of the notification.

src/Notifications/CheckerHasRecovered.php 1 location

@@ 37-45 (lines=9) @@
34
     *
35
     * @return array
36
     */
37
    protected function data(): array
38
    {
39
        return [
40
            'application_name'  => config('app.name') ?: 'Your application',
41
            'checker_type'      => get_class($this->checker),
42
            'failed_at'         => Carbon::createFromTimestamp($this->failedData['failed_at'][0]),
43
            'exception_message' => $this->failedData['exception_message'],
44
        ];
45
    }
46
47
    /**
48
     * Build the mail representation of the notification.