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.

LinkExtensionIntegrationTest::getExtensions()   A
last analyzed

Complexity

Conditions 2
Paths 1

Size

Total Lines 17
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 17
c 1
b 0
f 0
rs 9.4285
cc 2
eloc 11
nc 1
nop 0
1
<?php
2
3
namespace Hateoas\Tests\Twig\Extension;
4
5
use Hateoas\Twig\Extension\LinkExtension;
6
use Hateoas\UrlGenerator\CallableUrlGenerator;
7
8
class LinkExtensionIntegrationTest extends \Twig_Test_IntegrationTestCase
9
{
10
    public function getExtensions()
11
    {
12
        $hateoas = \Hateoas\HateoasBuilder::create()
13
            ->setUrlGenerator(null, new CallableUrlGenerator(function ($name, $parameters, $absolute) {
14
                return sprintf(
15
                    '%s/%s%s',
16
                    $absolute ? 'http://example.com' : '',
17
                    $name,
18
                    strtr('/id', $parameters)
19
                );
20
            }))
21
            ->build();
22
23
        return array(
24
            new LinkExtension($hateoas->getLinkHelper()),
25
        );
26
    }
27
28
    public function getFixturesDir()
29
    {
30
        return __DIR__ . '/../Fixtures/';
31
    }
32
}
33