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 ( b06f55...54bd50 )
by Pascal
05:48
created

AllowsForRetries::retryJob()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
3
namespace Pbmedia\ApiHealth\Checkers;
4
5
trait AllowsForRetries
6
{
7
    /**
8
     * Number of allowed retries.
9
     *
10
     * @var int
11
     */
12
    protected $allowedRetries;
13
14
    /**
15
     * Class name of the retry job.
16
     *
17
     * @var string
18
     */
19
    protected $retryJob;
20
21
    /**
22
     * Returns the number of allowed retries.
23
     *
24
     * @return int
25
     */
26
    public function allowedRetries(): int
27
    {
28
        return !is_null($this->allowedRetries) ? $this->allowedRetries : config('api-health.retries.allowed_retries');
29
    }
30
31
    /**
32
     * Returns the class name of the retry job.
33
     *
34
     * @return null|string
35
     */
36
    public function retryJob():  ? string
37
    {
38
        return $this->retryJob ?: config('api-health.retries.job.job');
39
    }
40
41
    /**
42
     * Callback for the retry job.
43
     *
44
     * @param  mix $job
45
     */
46
    public function withRetryJob($job)
0 ignored issues
show
Unused Code introduced by
The parameter $job is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
47
    {
48
49
    }
50
}
51