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.

InvalidHandler   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 19
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A handlerDoesNotExist() 0 4 1
A handlerDoesNotExtendFromBaseHandler() 0 6 1
A signatureIsRequired() 0 4 1
1
<?php
2
3
namespace Spatie\SlashCommand\Exceptions;
4
5
use Spatie\SlashCommand\Handlers\BaseHandler;
6
7
class InvalidHandler extends SlackSlashCommandException
8
{
9
    public static function handlerDoesNotExist($handler)
10
    {
11
        return new static("There is no class named `{$handler}`.");
12
    }
13
14
    public static function handlerDoesNotExtendFromBaseHandler($handler)
15
    {
16
        $baseHandlerClass = BaseHandler::class;
17
18
        return new static("The handler `{$handler}` must extend the base handler `{$baseHandlerClass}`.");
19
    }
20
21
    public static function signatureIsRequired($handler)
22
    {
23
        return new static("You must set a signature property on the `{$handler}`-class.");
24
    }
25
}
26