Completed
Push — master ( 198620...6d50d4 )
by
unknown
02:12
created

onCreateSchema()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 5
nc 1
nop 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