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   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 12 1
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