These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | |||
| 3 | final class WikibaseQualityExternalValidationHooks { |
||
|
0 ignored issues
–
show
|
|||
| 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 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.