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.

NullResource   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 12
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getData() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the League\Fractal package.
5
 *
6
 * (c) Phil Sturgeon <[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 League\Fractal\Resource;
13
14
/**
15
 * Null Resource
16
 *
17
 * The Null Resource represents a resource that doesn't exist. This can be
18
 * useful to indicate that a certain relationship is null in some output
19
 * formats (e.g. JSON API), which require even a relationship that is null at
20
 * the moment to be listed.
21
 */
22
class NullResource extends ResourceAbstract
23
{
24
    /**
25
     * Get the data.
26
     *
27
     * @return mixed
28
     */
29 5
    public function getData()
30
    {
31
        // Null has no data associated with it.
32 5
    }
33
}
34