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 ( be0626...df8c18 )
by Théo
33:01
created

BundleNotFoundException::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 4
1
<?php
2
3
namespace Hautelook\AliceBundle\Exception\Resolver;
4
5
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
6
7
class BundleNotFoundException extends \RuntimeException
8
{
9
    /**
10
     * @param string            $bundle
11
     * @param BundleInterface[] $bundles
12
     * @param int               $code
13
     * @param \Throwable|null   $previous
14
     *
15
     * @return static
16
     */
17
    public static function create(string $bundle, array $bundles, int $code = 0, \Throwable $previous = null)
18
    {
19
        return new static(
20
            sprintf(
21
                'The bundle "%s" was not found. Bundles available are: [%s].',
22
                $bundle,
23
                implode('", "', array_keys($bundles))
24
            ),
25
            $code,
26
            $previous
27
        );
28
    }
29
}
30