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 ( df8c18...6eb035 )
by Théo
70:05 queued 35:07
created

EnvironmentlessFilesLocator::locateFiles()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 2
1
<?php
2
3
/*
4
 * This file is part of the Hautelook\AliceBundle package.
5
 *
6
 * (c) Baldur Rensch <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Hautelook\AliceBundle\Locator;
13
14
use Hautelook\AliceBundle\FixtureLocatorInterface;
15
use Nelmio\Alice\NotClonableTrait;
16
17
/**
18
 * @author Théo FIDRY <[email protected]>
19
 */
20
final class EnvironmentlessFilesLocator implements FixtureLocatorInterface
21
{
22
    use NotClonableTrait;
23
24
    /**
25
     * @var FixtureLocatorInterface
26
     */
27
    private $fixtureLocator;
28
29
    public function __construct(FixtureLocatorInterface $fixtureLocator)
30
    {
31
        $this->fixtureLocator = $fixtureLocator;
32
    }
33
34
    /**
35
     * Locate fixture files found matching the environment name.
36
     *
37
     * For example, if the given fixture path is 'Resources/fixtures', it will try to locate
38
     * the files in the 'Resources/fixtures/*.dev.yml' for each bundle passed ('dev' being the
39
     * environment).
40
     *
41
     * {@inheritdoc}
42
     */
43
    public function locateFiles(array $bundles, string $environment): array
44
    {
45
        $fixtureFiles = array_flip($this->fixtureLocator->locateFiles($bundles, $environment));
46
        $fixtureFiles = $fixtureFiles + array_flip($this->fixtureLocator->locateFiles($bundles, ''));
47
48
        return array_keys($fixtureFiles);
49
    }
50
}
51