Completed
Push — master ( 0c9187...461910 )
by
unknown
02:34
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
final class WikibaseQualityExternalValidationHooks {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
4
5
	/**
6
	 * @param DatabaseUpdater $updater
7
	 *
8
	 * @return bool
9
	 */
10
	public static function onCreateSchema( DatabaseUpdater $updater ) {
11
		$updater->addExtensionTable( 'wbqev_dump_information', __DIR__ . '/sql/create_wbqev_dump_information.sql' );
12
		$updater->addExtensionTable( 'wbqev_external_data', __DIR__ . '/sql/create_wbqev_external_data.sql' );
13
		$updater->addExtensionTable( 'wbqev_identifier_properties', __DIR__ . '/sql/create_wbqev_identifier_properties.sql' );
14
15
		return true;
16
	}
17
18
	public static function onUnitTestsList( &$paths ) {
19
		$paths[] = __DIR__ . '/tests/phpunit';
20
		return true;
21
	}
22
23
}
24