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 ( e2875b...35ced9 )
by Anton
03:41
created

src/Component/PharUpdate/Exception/Exception.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace Deployer\Component\PharUpdate\Exception;
4
5
/**
6
 * Provides additional functional to the Exception class.
7
 *
8
 * @author Kevin Herrera <[email protected]>
9
 */
10
class Exception extends \Exception implements ExceptionInterface
11
{
12
    /**
13
     * Creates a new exception using a format and values.
14
     *
15
     * @param string $format    The format.
16
     * @param mixed  $value,... The value(s).
17
     *
18
     * @return Exception The exception.
19
     */
20
    public static function create($format, $value = null)
0 ignored issues
show
The parameter $value 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...
21
    {
22
        if (0 < func_num_args()) {
23
            $format = vsprintf($format, array_slice(func_get_args(), 1));
24
        }
25
26
        return new static($format);
27
    }
28
29
    /**
30
     * Creates an exception for the last error message.
31
     *
32
     * @return Exception The exception.
33
     */
34
    public static function lastError()
35
    {
36
        $error = error_get_last();
37
38
        return new static($error['message']);
39
    }
40
}
41