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.

Code Duplication    Length = 8-12 lines in 2 locations

src/Entity/Marathon/AppEntity/PortDefinition.php 1 location

@@ 37-44 (lines=8) @@
34
    /**
35
     * @inheritdoc
36
     */
37
    public function jsonSerialize()
38
    {
39
        $return = (array) $this;
40
        $return = array_filter($return, function ($value, $key) {
41
            return !is_null($value);
42
        }, ARRAY_FILTER_USE_BOTH);
43
        return $return;
44
    }
45
}
46

src/Entity/Marathon/MarathonAppEntity.php 1 location

@@ 152-163 (lines=12) @@
149
     * @inheritdoc
150
     * @return array
151
     */
152
    public function jsonSerialize()
153
    {
154
        $return = (array) $this;
155
        $return = array_filter(
156
            $return,
157
            function ($value, $key) {
158
                return !is_null($value) || empty($value);
159
            },
160
            ARRAY_FILTER_USE_BOTH
161
        );
162
        return $return;
163
    }
164
165
    /**
166
     * @inheritdoc