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 ( 4a67f9...fffa0d )
by Chris
8s
created

JsonSerializer::serializeData()   D

Complexity

Conditions 10
Paths 7

Size

Total Lines 27
Code Lines 16

Duplication

Lines 0
Ratio 0 %

Importance

Changes 9
Bugs 1 Features 2
Metric Value
c 9
b 1
f 2
dl 0
loc 27
rs 4.8196
cc 10
eloc 16
nc 7
nop 1

How to fix   Complexity   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
3
namespace Zumba\Util;
4
5
use Zumba\JsonSerializer\JsonSerializer as NewJsonSerializer;
6
7
/**
8
 * @deprecated Will be removed on the 3.0.0. Use Zumba\JsonSerializer\JsonSerializer instead
9
 */
10
class JsonSerializer extends NewJsonSerializer
11
{
12
}
13