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
Pull Request — master (#1)
by
unknown
12:30
created

getRequiredBundles()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
cc 2
nc 2
nop 2
1
<?php
2
declare(strict_types=1);
3
4
/*
5
 * This file is part of the Stinger Entity Search package.
6
 *
7
 * (c) Oliver Kotte <[email protected]>
8
 * (c) Florian Meyer <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace StingerSoft\EntitySearchBundle;
15
16
use StingerSoft\EntitySearchBundle\DependencyInjection\Compiler\FacetCompilerPass;
17
use StingerSoft\EntitySearchBundle\Services\Facet\FacetServiceInterface;
18
use Symfony\Component\DependencyInjection\ContainerBuilder;
19
use Symfony\Component\HttpKernel\Bundle\Bundle;
20
21
/**
22
 */
23
class StingerSoftEntitySearchBundle extends Bundle {
24
25
	public static function getRequiredBundles(string $env, array &$requiredBundles = []): array {
0 ignored issues
show
Unused Code introduced by
The parameter $env 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...
26
27
		if(isset($requiredBundles['StingerSoftEntitySearchBundle'])) {
28
			return $requiredBundles;
29
		}
30
31
		$requiredBundles['StingerSoftEntitySearchBundle'] = '\StingerSoft\EntitySearchBundle\StingerSoftEntitySearchBundle';
32
		$requiredBundles['KnpPaginatorBundle'] = 'Knp\Bundle\PaginatorBundle\KnpPaginatorBundle';
33
		return $requiredBundles;
34
	}
35
36
	public function build(ContainerBuilder $container) {
37
		$container->registerForAutoconfiguration(FacetServiceInterface::class)->addTag(FacetServiceInterface::TAG_NAME);
38
		$container->addCompilerPass(new FacetCompilerPass());
39
	}
40
}