Test Failed
Push — main ( 840cfb...269cf1 )
by Rafael
06:05
created

getWeatherStatus()   B

Complexity

Conditions 10
Paths 160

Size

Total Lines 48
Code Lines 35

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 10
eloc 35
c 1
b 0
f 0
nc 160
nop 1
dl 0
loc 48
rs 7.1666

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
die ('
3
    <h1>Delete this file and put in its place the Dolibarr "index.php" renamed as "index_dol.php"</h1>
4
    <p>Elimine este fichero y ponga en su lugar el "index.php" de Dolibarr renombrado como "index_dol.php".
5
');
6