Version0910Date20221109095939   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 11
ccs 0
cts 4
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getColumnsByTable() 0 4 1
1
<?php
2
namespace OCA\FaceRecognition\Migration;
3
4
use OCP\DB\ISchemaWrapper;
5
use OCP\Migration\BigIntMigration;
6
use OCP\Migration\IOutput;
7
8
class Version0910Date20221109095939 extends BigIntMigration {
9
10
	/**
11
	 * @return array Returns an array with the following structure
12
	 * ['table1' => ['column1', 'column2'], ...]
13
	 * @since 13.0.0
14
	 */
15
	protected function getColumnsByTable() {
16
		return [
17
			'facerecog_images' => ['id', 'file'],
18
			'facerecog_faces' => ['image'],
19
		];
20
	}
21
22
}
23