Completed
Pull Request — develop (#716)
by Agel_Nash
06:45 queued 44s
created

tmplvars.format.inc.php ➔ getTVDisplayFormat()   F

Complexity

Conditions 84
Paths 2312

Size

Total Lines 321
Code Lines 242

Duplication

Lines 3
Ratio 0.93 %

Importance

Changes 0
Metric Value
cc 84
eloc 242
nc 2312
nop 7
dl 3
loc 321
rs 2
c 0
b 0
f 0

How to fix   Long Method    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
include_once MODX_MANAGER_PATH . 'includes/functions/tv.php';
4