@@ -14,24 +14,24 @@ discard block |
||
14 | 14 | use WikibaseQuality\ConstraintReport\ConstraintCheck\Result\CheckResultSerializer; |
15 | 15 | |
16 | 16 | return [ |
17 | - ConstraintsServices::LOGGING_HELPER => function( MediaWikiServices $services ) { |
|
17 | + ConstraintsServices::LOGGING_HELPER => function(MediaWikiServices $services) { |
|
18 | 18 | return new LoggingHelper( |
19 | 19 | $services->getStatsdDataFactory(), |
20 | - LoggerFactory::getInstance( 'WikibaseQualityConstraints' ), |
|
20 | + LoggerFactory::getInstance('WikibaseQualityConstraints'), |
|
21 | 21 | $services->getMainConfig() |
22 | 22 | ); |
23 | 23 | }, |
24 | 24 | |
25 | - ConstraintsServices::CONSTRAINT_REPOSITORY => function( MediaWikiServices $services ) { |
|
25 | + ConstraintsServices::CONSTRAINT_REPOSITORY => function(MediaWikiServices $services) { |
|
26 | 26 | return new ConstraintRepository(); |
27 | 27 | }, |
28 | 28 | |
29 | - ConstraintsServices::CONSTRAINT_LOOKUP => function( MediaWikiServices $services ) { |
|
30 | - $constraintRepository = ConstraintsServices::getConstraintRepository( $services ); |
|
31 | - return new CachingConstraintLookup( $constraintRepository ); |
|
29 | + ConstraintsServices::CONSTRAINT_LOOKUP => function(MediaWikiServices $services) { |
|
30 | + $constraintRepository = ConstraintsServices::getConstraintRepository($services); |
|
31 | + return new CachingConstraintLookup($constraintRepository); |
|
32 | 32 | }, |
33 | 33 | |
34 | - ConstraintsServices::CHECK_RESULT_SERIALIZER => function( MediaWikiServices $services ) { |
|
34 | + ConstraintsServices::CHECK_RESULT_SERIALIZER => function(MediaWikiServices $services) { |
|
35 | 35 | return new CheckResultSerializer( |
36 | 36 | new ConstraintSerializer( |
37 | 37 | false // constraint parameters are not exposed |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | ); |
43 | 43 | }, |
44 | 44 | |
45 | - ConstraintsServices::CHECK_RESULT_DESERIALIZER => function( MediaWikiServices $services ) { |
|
45 | + ConstraintsServices::CHECK_RESULT_DESERIALIZER => function(MediaWikiServices $services) { |
|
46 | 46 | // TODO in the future, get EntityIdParser and DataValueFactory from $services? |
47 | 47 | $repo = WikibaseRepo::getDefaultInstance(); |
48 | 48 | $entityIdParser = $repo->getEntityIdParser(); |