Completed
Push — development ( 1cbaaa...3e1df6 )
by Mirco
21s
created

StaticMap::parseParams()   B

Complexity

Conditions 10
Paths 60

Size

Total Lines 32

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 10
nc 60
nop 0
dl 0
loc 32
rs 7.6666
c 0
b 0
f 0

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
4
//error_reporting(E_ALL);
5
//ini_set('display_errors', 'on');
6
7
require __DIR__ . '/vendor/autoload.php';
8
9
use OcLegacy\Map\StaticMap;
10
11
$map = new StaticMap();
12
echo $map->showMap();
13