Passed
Push — 2019.10 ( 623442...0d5c4e )
by Aimeos
01:44
created

CustomerMigrateListsKeyTypo3::migrate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 0
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 key columns
14
 */
15
class CustomerMigrateListsKeyTypo3 extends TablesMigrateListsKey
16
{
17
	/**
18
	 * Returns the list of task names which this task depends on.
19
	 *
20
	 * @return string[] List of task names
21
	 */
22
	public function getPreDependencies()
23
	{
24
		return ['TablesMigrateListsKey'];
25
	}
26
27
28
	/**
29
	 * Executes the task
30
	 */
31
	public function migrate()
32
	{
33
		$this->msg( 'Update TYPO3 lists "key" columns', 0 ); $this->status( '' );
34
35
		$this->process( ['db-customer' => 'fe_users_list'] );
0 ignored issues
show
Bug introduced by
The method process() does not exist on Aimeos\MW\Setup\Task\CustomerMigrateListsKeyTypo3. ( Ignorable by Annotation )

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

35
		$this->/** @scrutinizer ignore-call */ 
36
         process( ['db-customer' => 'fe_users_list'] );

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...
36
	}
37
}
38