Completed
Push — master ( bc0916...92f140 )
by cam
04:43
created

svn10000.php ➔ maj_collation_sqlite()   C

Complexity

Conditions 12
Paths 21

Size

Total Lines 71

Duplication

Lines 11
Ratio 15.49 %

Importance

Changes 0
Metric Value
cc 12
nc 21
nop 0
dl 11
loc 71
rs 6.206
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
/***************************************************************************\
4
 *  SPIP, Système de publication pour l'internet                           *
5
 *                                                                         *
6
 *  Copyright © avec tendresse depuis 2001                                 *
7
 *  Arnaud Martin, Antoine Pitrou, Philippe Rivière, Emmanuel Saint-James  *
8
 *                                                                         *
9
 *  Ce programme est un logiciel libre distribué sous licence GNU/GPL.     *
10
 *  Pour plus de détails voir le fichier COPYING.txt ou l'aide en ligne.   *
11
\***************************************************************************/
12
13
/**
14
 * Certains plugins appelaient ce fichier pour acceder a maj_lien(),
15
 * qui sert à la migration des tables vers SPIP 3.0
16
 * 
17
 * @package SPIP\Core\SQL\Upgrade
18
 */
19
20
if (!defined('_ECRIRE_INC_VERSION')) {
21
	return;
22
}
23
24
include_spip('maj/legacy/v30');