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.

FileLoaderTrait::fileGetContents()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of the Netaxept API package.
5
 *
6
 * (c) Andrew Plank
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
declare(strict_types=1);
13
14
namespace FDM\Netaxept\Traits;
15
16
trait FileLoaderTrait
17
{
18
    /**
19
     * Fetches the contents of the specified file, relative to the Resources directory.
20
     *
21
     * @param string $resourcesRelativePath
22
     *
23
     * @return bool|string
24
     */
25
    public function fileGetContents(string $resourcesRelativePath)
26
    {
27
        $f = $_SERVER['PWD'] . '/Resources/' . $resourcesRelativePath;
28
29
        return file_get_contents($f);
30
    }
31
}
32