Completed
Push — master ( 1980e6...750378 )
by
unknown
04:49
created

WikibaseQualityExternalValidationHooks   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 21
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A onCreateSchema() 0 7 1
A onUnitTestsList() 0 4 1
1
<?php
2
3
namespace WikibaseQuality\ExternalValidation;
4
5
use DatabaseUpdater;
6
7
final class WikibaseQualityExternalValidationHooks {
8
9
	/**
10
	 * @param DatabaseUpdater $updater
11
	 *
12
	 * @return bool
13
	 */
14
	public static function onCreateSchema( DatabaseUpdater $updater ) {
15
		$updater->addExtensionTable( 'wbqev_dump_information', __DIR__ . '/sql/create_wbqev_dump_information.sql' );
16
		$updater->addExtensionTable( 'wbqev_external_data', __DIR__ . '/sql/create_wbqev_external_data.sql' );
17
		$updater->addExtensionTable( 'wbqev_identifier_properties', __DIR__ . '/sql/create_wbqev_identifier_properties.sql' );
18
19
		return true;
20
	}
21
22
	public static function onUnitTestsList( &$paths ) {
23
		$paths[] = __DIR__ . '/tests/phpunit';
24
		return true;
25
	}
26
27
}
28