smf2_0_importer::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
/**
3
 * @name      OpenImporter
4
 * @copyright OpenImporter contributors
5
 * @license   BSD https://opensource.org/licenses/BSD-3-Clause
6
 *
7
 * @version 1.0
8
 *
9
 * This file contains code based on:
10
 *
11
 * Simple Machines Forum (SMF)
12
 * copyright:	2011 Simple Machines (http://www.simplemachines.org)
13
 * license:	BSD, See included LICENSE.TXT for terms and conditions.
14
 */
15
16
/**
17
 * The class contains code that allows the Importer to obtain settings
18
 * from the ElkArte installation.
19
 */
20
class smf2_0_importer extends Importers\SmfCommonSource
21
{
22
	/**
23
	 * @var string
24
	 */
25
	public $attach_extension = 'dat';
26
27
	/**
28
	 * @return string
29
	 */
30
	public function getName()
31
	{
32
		return 'SMF 2.0';
33
	}
34
}
35
36
class smf2_0_importer_step1 extends Importers\SmfCommonSourceStep1
37
{
38
}
39
40
class smf2_0_importer_step2 extends Importers\SmfCommonSourceStep2
41
{
42
	/**
43
	 * Repair any wrong number of personal messages
44
	 */
45
	public function substep0()
46
	{
47
		$to_prefix = $this->config->to_prefix;
0 ignored issues
show
Unused Code introduced by
The assignment to $to_prefix is dead and can be removed.
Loading history...
48
49
	}
50
}
51
52
class smf2_0_importer_step3 extends Importers\SmfCommonSourceStep3
53
{
54
}
55