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.

MmexArraySerializer::meta()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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 App\Serializers;
13
14
use League\Fractal\Pagination\CursorInterface;
15
use League\Fractal\Pagination\PaginatorInterface;
16
use League\Fractal\Resource\ResourceInterface;
17
use League\Fractal\Serializer\SerializerAbstract;
18
19
class MmexArraySerializer extends SerializerAbstract
20
{
21
    /**
22
     * Serialize a collection.
23
     *
24
     * @param string $resourceKey
25
     * @param array  $data
26
     *
27
     * @return array
28
     */
29
    public function collection($resourceKey, array $data)
30
    {
31
        return $data;
32
    }
33
34
    /**
35
     * Serialize an item.
36
     *
37
     * @param string $resourceKey
38
     * @param array  $data
39
     *
40
     * @return array
41
     */
42
    public function item($resourceKey, array $data)
43
    {
44
        return $data;
45
    }
46
47
    /**
48
     * Serialize null resource.
49
     *
50
     * @return array
51
     */
52
    public function null()
53
    {
54
        return [];
55
    }
56
57
    /**
58
     * Serialize the included data.
59
     *
60
     * @param ResourceInterface $resource
61
     * @param array             $data
62
     *
63
     * @return array
64
     */
65
    public function includedData(ResourceInterface $resource, array $data)
66
    {
67
        return $data;
68
    }
69
70
    /**
71
     * Serialize the meta.
72
     *
73
     * @param array $meta
74
     *
75
     * @return array
76
     */
77
    public function meta(array $meta)
78
    {
79
        return [];
80
    }
81
82
    /**
83
     * Serialize the paginator.
84
     *
85
     * @param PaginatorInterface $paginator
86
     *
87
     * @return array
88
     */
89
    public function paginator(PaginatorInterface $paginator)
90
    {
91
        return [];
92
    }
93
94
    /**
95
     * Serialize the "cursor.
96
     *
97
     * @param CursorInterface $cursor
98
     *
99
     * @return array
100
     */
101
    public function cursor(CursorInterface $cursor)
102
    {
103
        return [];
104
    }
105
}
106