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
Push — master ( 9ca3c4...0e5848 )
by Freek
02:03
created

CatchAll::handle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Spatie\SlashCommand\Handlers;
4
5
use App\Jobs\TestJob;
6
use Spatie\SlashCommand\Request;
7
use Spatie\SlashCommand\Response;
8
9
class CatchAll extends BaseHandler
10
{
11
    public function handle(Request $request): Response
12
    {
13
        //$this->dispatch(new TestJob());
0 ignored issues
show
Unused Code Comprehensibility introduced by
73% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
14
15
        return $this->respondToSlack("Received this message `{$request->text}`");
16
    }
17
18
    public function canHandle(Request $request): bool
19
    {
20
        return true;
21
    }
22
23
24
}
25