Passed
Push — master ( df75c8...73d17d )
by Aimeos
01:49
created

getPostDependencies()   A

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
/**
4
 * @license LGPLv3, http://opensource.org/licenses/LGPL-3.0
5
 * @copyright Aimeos (aimeos.org), 2019
6
 */
7
8
9
namespace Aimeos\MW\Setup\Task;
10
11
12
/**
13
 * Updates site ID columns
14
 */
15
class TablesMigrateSiteidEzpublish extends TablesMigrateSiteid
16
{
17
	private $resources = [
18
		'db-customer' => [
19
			'ezuser_list_type', 'ezuser_property_type',
20
			'ezuser_property', 'ezuser_list', 'ezuser_address', 'ezuser',
21
		],
22
	];
23
24
25
	/**
26
	 * Returns the list of task names which this task depends on.
27
	 *
28
	 * @return string[] List of task names
29
	 */
30
	public function getPreDependencies() : array
31
	{
32
		return ['TablesMigrateSiteid'];
33
	}
34
35
36
	/**
37
	 * Returns the list of task names which this task depends on.
38
	 *
39
	 * @return string[] List of task names
40
	 */
41
	public function getPostDependencies() : array
42
	{
43
		return ['TablesCreateMShop'];
44
	}
45
46
47
	/**
48
	 * Executes the task
49
	 */
50
	public function migrate()
51
	{
52
		$this->msg( 'Update eZPublish "siteid" columns', 0, '' );
53
54
		$this->process( $this->resources );
0 ignored issues
show
Bug introduced by
The method process() does not exist on Aimeos\MW\Setup\Task\TablesMigrateSiteidEzpublish. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

54
		$this->/** @scrutinizer ignore-call */ 
55
         process( $this->resources );

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
55
	}
56
}
57