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 ( ea9462...f6a83c )
by Nikhil
10:26
created

DataSerializer::collection()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 2
crap 2
1
<?php
2
3
namespace App\Serializers;
4
5
use League\Fractal\Serializer\ArraySerializer;
6
7
class DataSerializer extends ArraySerializer
8
{
9
    /**
10
     * Serialize a collection.
11
     *
12
     * @param string $resourceKey
13
     * @param array $data
14
     *
15
     * @return array
16
     */
17
    public function collection($resourceKey, array $data)
18
    {
19
        return $data;
20
    }
21
22
    /**
23
     * Serialize an item.
24
     *
25
     * @param string $resourceKey
26
     * @param array $data
27
     *
28
     * @return array
29
     */
30
    public function item($resourceKey, array $data)
31
    {
32
        return $data;
33
    }
34
}
35