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.

Issues (18)

src/Checkers/AllowsForRetries.php (3 issues)

1
<?php
2
3
namespace ProtoneMedia\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');
0 ignored issues
show
The condition is_null($this->allowedRetries) is always false.
Loading history...
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
0 ignored issues
show
The type ProtoneMedia\ApiHealth\Checkers\mix was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
45
     */
46
    public function withRetryJob($job)
0 ignored issues
show
The parameter $job is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

46
    public function withRetryJob(/** @scrutinizer ignore-unused */ $job)

This check looks for 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