@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | public static function getDefaultInstance() { |
137 | 137 | static $instance = null; |
138 | 138 | |
139 | - if ( $instance === null ) { |
|
139 | + if ($instance === null) { |
|
140 | 140 | $wikibaseRepo = WikibaseRepo::getDefaultInstance(); |
141 | 141 | $config = MediaWikiServices::getInstance()->getMainConfig(); |
142 | 142 | $titleParser = MediaWikiServices::getInstance()->getTitleParser(); |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | * @return DelegatingConstraintChecker |
183 | 183 | */ |
184 | 184 | public function getConstraintChecker() { |
185 | - if ( $this->delegatingConstraintChecker === null ) { |
|
185 | + if ($this->delegatingConstraintChecker === null) { |
|
186 | 186 | $this->delegatingConstraintChecker = new DelegatingConstraintChecker( |
187 | 187 | $this->lookup, |
188 | 188 | $this->getConstraintCheckerMap(), |
@@ -190,9 +190,9 @@ discard block |
||
190 | 190 | ConstraintsServices::getConstraintParameterParser(), |
191 | 191 | $this->statementGuidParser, |
192 | 192 | ConstraintsServices::getLoggingHelper(), |
193 | - $this->config->get( 'WBQualityConstraintsCheckQualifiers' ), |
|
194 | - $this->config->get( 'WBQualityConstraintsCheckReferences' ), |
|
195 | - $this->config->get( 'WBQualityConstraintsPropertiesWithViolatingQualifiers' ) |
|
193 | + $this->config->get('WBQualityConstraintsCheckQualifiers'), |
|
194 | + $this->config->get('WBQualityConstraintsCheckReferences'), |
|
195 | + $this->config->get('WBQualityConstraintsPropertiesWithViolatingQualifiers') |
|
196 | 196 | ); |
197 | 197 | } |
198 | 198 | |
@@ -203,122 +203,122 @@ discard block |
||
203 | 203 | * @return ConstraintChecker[] |
204 | 204 | */ |
205 | 205 | private function getConstraintCheckerMap() { |
206 | - if ( $this->constraintCheckerMap === null ) { |
|
206 | + if ($this->constraintCheckerMap === null) { |
|
207 | 207 | $this->constraintCheckerMap = [ |
208 | - $this->config->get( 'WBQualityConstraintsConflictsWithConstraintId' ) |
|
208 | + $this->config->get('WBQualityConstraintsConflictsWithConstraintId') |
|
209 | 209 | => new ConflictsWithChecker( |
210 | 210 | $this->lookup, |
211 | 211 | ConstraintsServices::getConstraintParameterParser(), |
212 | 212 | ConstraintsServices::getConnectionCheckerHelper() |
213 | 213 | ), |
214 | - $this->config->get( 'WBQualityConstraintsItemRequiresClaimConstraintId' ) |
|
214 | + $this->config->get('WBQualityConstraintsItemRequiresClaimConstraintId') |
|
215 | 215 | => new ItemChecker( |
216 | 216 | $this->lookup, |
217 | 217 | ConstraintsServices::getConstraintParameterParser(), |
218 | 218 | ConstraintsServices::getConnectionCheckerHelper() |
219 | 219 | ), |
220 | - $this->config->get( 'WBQualityConstraintsValueRequiresClaimConstraintId' ) |
|
220 | + $this->config->get('WBQualityConstraintsValueRequiresClaimConstraintId') |
|
221 | 221 | => new TargetRequiredClaimChecker( |
222 | 222 | $this->lookup, |
223 | 223 | ConstraintsServices::getConstraintParameterParser(), |
224 | 224 | ConstraintsServices::getConnectionCheckerHelper() |
225 | 225 | ), |
226 | - $this->config->get( 'WBQualityConstraintsSymmetricConstraintId' ) |
|
226 | + $this->config->get('WBQualityConstraintsSymmetricConstraintId') |
|
227 | 227 | => new SymmetricChecker( |
228 | 228 | $this->lookup, |
229 | 229 | ConstraintsServices::getConnectionCheckerHelper() |
230 | 230 | ), |
231 | - $this->config->get( 'WBQualityConstraintsInverseConstraintId' ) |
|
231 | + $this->config->get('WBQualityConstraintsInverseConstraintId') |
|
232 | 232 | => new InverseChecker( |
233 | 233 | $this->lookup, |
234 | 234 | ConstraintsServices::getConstraintParameterParser(), |
235 | 235 | ConstraintsServices::getConnectionCheckerHelper() |
236 | 236 | ), |
237 | - $this->config->get( 'WBQualityConstraintsUsedAsQualifierConstraintId' ) |
|
237 | + $this->config->get('WBQualityConstraintsUsedAsQualifierConstraintId') |
|
238 | 238 | => new QualifierChecker(), |
239 | - $this->config->get( 'WBQualityConstraintsAllowedQualifiersConstraintId' ) |
|
239 | + $this->config->get('WBQualityConstraintsAllowedQualifiersConstraintId') |
|
240 | 240 | => new QualifiersChecker( |
241 | 241 | ConstraintsServices::getConstraintParameterParser() |
242 | 242 | ), |
243 | - $this->config->get( 'WBQualityConstraintsMandatoryQualifierConstraintId' ) |
|
243 | + $this->config->get('WBQualityConstraintsMandatoryQualifierConstraintId') |
|
244 | 244 | => new MandatoryQualifiersChecker( |
245 | 245 | ConstraintsServices::getConstraintParameterParser() |
246 | 246 | ), |
247 | - $this->config->get( 'WBQualityConstraintsRangeConstraintId' ) |
|
247 | + $this->config->get('WBQualityConstraintsRangeConstraintId') |
|
248 | 248 | => new RangeChecker( |
249 | 249 | $this->propertyDataTypeLookup, |
250 | 250 | ConstraintsServices::getConstraintParameterParser(), |
251 | 251 | ConstraintsServices::getRangeCheckerHelper() |
252 | 252 | ), |
253 | - $this->config->get( 'WBQualityConstraintsDifferenceWithinRangeConstraintId' ) |
|
253 | + $this->config->get('WBQualityConstraintsDifferenceWithinRangeConstraintId') |
|
254 | 254 | => new DiffWithinRangeChecker( |
255 | 255 | ConstraintsServices::getConstraintParameterParser(), |
256 | 256 | ConstraintsServices::getRangeCheckerHelper(), |
257 | 257 | $this->config |
258 | 258 | ), |
259 | - $this->config->get( 'WBQualityConstraintsTypeConstraintId' ) |
|
259 | + $this->config->get('WBQualityConstraintsTypeConstraintId') |
|
260 | 260 | => new TypeChecker( |
261 | 261 | $this->lookup, |
262 | 262 | ConstraintsServices::getConstraintParameterParser(), |
263 | 263 | ConstraintsServices::getTypeCheckerHelper(), |
264 | 264 | $this->config |
265 | 265 | ), |
266 | - $this->config->get( 'WBQualityConstraintsValueTypeConstraintId' ) |
|
266 | + $this->config->get('WBQualityConstraintsValueTypeConstraintId') |
|
267 | 267 | => new ValueTypeChecker( |
268 | 268 | $this->lookup, |
269 | 269 | ConstraintsServices::getConstraintParameterParser(), |
270 | 270 | ConstraintsServices::getTypeCheckerHelper(), |
271 | 271 | $this->config |
272 | 272 | ), |
273 | - $this->config->get( 'WBQualityConstraintsSingleValueConstraintId' ) |
|
274 | - => new SingleValueChecker( ConstraintsServices::getConstraintParameterParser() ), |
|
275 | - $this->config->get( 'WBQualityConstraintsMultiValueConstraintId' ) |
|
276 | - => new MultiValueChecker( ConstraintsServices::getConstraintParameterParser() ), |
|
277 | - $this->config->get( 'WBQualityConstraintsDistinctValuesConstraintId' ) |
|
273 | + $this->config->get('WBQualityConstraintsSingleValueConstraintId') |
|
274 | + => new SingleValueChecker(ConstraintsServices::getConstraintParameterParser()), |
|
275 | + $this->config->get('WBQualityConstraintsMultiValueConstraintId') |
|
276 | + => new MultiValueChecker(ConstraintsServices::getConstraintParameterParser()), |
|
277 | + $this->config->get('WBQualityConstraintsDistinctValuesConstraintId') |
|
278 | 278 | => new UniqueValueChecker( |
279 | 279 | ConstraintsServices::getSparqlHelper() |
280 | 280 | ), |
281 | - $this->config->get( 'WBQualityConstraintsFormatConstraintId' ) |
|
281 | + $this->config->get('WBQualityConstraintsFormatConstraintId') |
|
282 | 282 | => new FormatChecker( |
283 | 283 | ConstraintsServices::getConstraintParameterParser(), |
284 | 284 | $this->config, |
285 | 285 | ConstraintsServices::getSparqlHelper() |
286 | 286 | ), |
287 | - $this->config->get( 'WBQualityConstraintsCommonsLinkConstraintId' ) |
|
287 | + $this->config->get('WBQualityConstraintsCommonsLinkConstraintId') |
|
288 | 288 | => new CommonsLinkChecker( |
289 | 289 | ConstraintsServices::getConstraintParameterParser(), |
290 | 290 | $this->titleParser |
291 | 291 | ), |
292 | - $this->config->get( 'WBQualityConstraintsOneOfConstraintId' ) |
|
292 | + $this->config->get('WBQualityConstraintsOneOfConstraintId') |
|
293 | 293 | => new OneOfChecker( |
294 | 294 | ConstraintsServices::getConstraintParameterParser() |
295 | 295 | ), |
296 | - $this->config->get( 'WBQualityConstraintsUsedForValuesOnlyConstraintId' ) |
|
296 | + $this->config->get('WBQualityConstraintsUsedForValuesOnlyConstraintId') |
|
297 | 297 | => new ValueOnlyChecker(), |
298 | - $this->config->get( 'WBQualityConstraintsUsedAsReferenceConstraintId' ) |
|
298 | + $this->config->get('WBQualityConstraintsUsedAsReferenceConstraintId') |
|
299 | 299 | => new ReferenceChecker(), |
300 | - $this->config->get( 'WBQualityConstraintsNoBoundsConstraintId' ) |
|
300 | + $this->config->get('WBQualityConstraintsNoBoundsConstraintId') |
|
301 | 301 | => new NoBoundsChecker(), |
302 | - $this->config->get( 'WBQualityConstraintsAllowedUnitsConstraintId' ) |
|
302 | + $this->config->get('WBQualityConstraintsAllowedUnitsConstraintId') |
|
303 | 303 | => new AllowedUnitsChecker( |
304 | 304 | ConstraintsServices::getConstraintParameterParser(), |
305 | 305 | $this->unitConverter |
306 | 306 | ), |
307 | - $this->config->get( 'WBQualityConstraintsSingleBestValueConstraintId' ) |
|
308 | - => new SingleBestValueChecker( ConstraintsServices::getConstraintParameterParser() ), |
|
309 | - $this->config->get( 'WBQualityConstraintsAllowedEntityTypesConstraintId' ) |
|
307 | + $this->config->get('WBQualityConstraintsSingleBestValueConstraintId') |
|
308 | + => new SingleBestValueChecker(ConstraintsServices::getConstraintParameterParser()), |
|
309 | + $this->config->get('WBQualityConstraintsAllowedEntityTypesConstraintId') |
|
310 | 310 | => new EntityTypeChecker( |
311 | 311 | ConstraintsServices::getConstraintParameterParser() |
312 | 312 | ), |
313 | - $this->config->get( 'WBQualityConstraintsNoneOfConstraintId' ) |
|
313 | + $this->config->get('WBQualityConstraintsNoneOfConstraintId') |
|
314 | 314 | => new NoneOfChecker( |
315 | 315 | ConstraintsServices::getConstraintParameterParser() |
316 | 316 | ), |
317 | - $this->config->get( 'WBQualityConstraintsIntegerConstraintId' ) |
|
317 | + $this->config->get('WBQualityConstraintsIntegerConstraintId') |
|
318 | 318 | => new IntegerChecker(), |
319 | - $this->config->get( 'WBQualityConstraintsCitationNeededConstraintId' ) |
|
319 | + $this->config->get('WBQualityConstraintsCitationNeededConstraintId') |
|
320 | 320 | => new CitationNeededChecker(), |
321 | - $this->config->get( 'WBQualityConstraintsPropertyScopeConstraintId' ) |
|
321 | + $this->config->get('WBQualityConstraintsPropertyScopeConstraintId') |
|
322 | 322 | => new PropertyScopeChecker( |
323 | 323 | ConstraintsServices::getConstraintParameterParser() |
324 | 324 | ), |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | * @return WikiPageEntityMetaDataAccessor |
333 | 333 | */ |
334 | 334 | public function getWikiPageEntityMetaDataAccessor() { |
335 | - if ( $this->wikiPageEntityMetaDataAccessor === null ) { |
|
335 | + if ($this->wikiPageEntityMetaDataAccessor === null) { |
|
336 | 336 | $this->wikiPageEntityMetaDataAccessor = new WikiPageEntityMetaDataLookup( |
337 | 337 | $this->entityNamespaceLookup |
338 | 338 | ); |
@@ -345,12 +345,12 @@ discard block |
||
345 | 345 | * @return ResultsSource |
346 | 346 | */ |
347 | 347 | public function getResultsSource() { |
348 | - if ( $this->resultsSource === null ) { |
|
348 | + if ($this->resultsSource === null) { |
|
349 | 349 | $this->resultsSource = new CheckingResultsSource( |
350 | 350 | $this->getConstraintChecker() |
351 | 351 | ); |
352 | 352 | |
353 | - if ( $this->config->get( 'WBQualityConstraintsCacheCheckConstraintsResults' ) ) { |
|
353 | + if ($this->config->get('WBQualityConstraintsCacheCheckConstraintsResults')) { |
|
354 | 354 | $this->resultsSource = new CachingResultsSource( |
355 | 355 | $this->resultsSource, |
356 | 356 | ResultsCache::getDefaultInstance(), |
@@ -358,9 +358,9 @@ discard block |
||
358 | 358 | ConstraintsServices::getCheckResultDeserializer(), |
359 | 359 | $this->getWikiPageEntityMetaDataAccessor(), |
360 | 360 | $this->entityIdParser, |
361 | - $this->config->get( 'WBQualityConstraintsCacheCheckConstraintsTTLSeconds' ), |
|
361 | + $this->config->get('WBQualityConstraintsCacheCheckConstraintsTTLSeconds'), |
|
362 | 362 | $this->getPossiblyStaleConstraintTypes(), |
363 | - $this->config->get( 'WBQualityConstraintsCacheCheckConstraintsMaximumRevisionIds' ), |
|
363 | + $this->config->get('WBQualityConstraintsCacheCheckConstraintsMaximumRevisionIds'), |
|
364 | 364 | ConstraintsServices::getLoggingHelper() |
365 | 365 | ); |
366 | 366 | } |
@@ -374,10 +374,10 @@ discard block |
||
374 | 374 | */ |
375 | 375 | public function getPossiblyStaleConstraintTypes() { |
376 | 376 | return [ |
377 | - $this->config->get( 'WBQualityConstraintsCommonsLinkConstraintId' ), |
|
378 | - $this->config->get( 'WBQualityConstraintsTypeConstraintId' ), |
|
379 | - $this->config->get( 'WBQualityConstraintsValueTypeConstraintId' ), |
|
380 | - $this->config->get( 'WBQualityConstraintsDistinctValuesConstraintId' ), |
|
377 | + $this->config->get('WBQualityConstraintsCommonsLinkConstraintId'), |
|
378 | + $this->config->get('WBQualityConstraintsTypeConstraintId'), |
|
379 | + $this->config->get('WBQualityConstraintsValueTypeConstraintId'), |
|
380 | + $this->config->get('WBQualityConstraintsDistinctValuesConstraintId'), |
|
381 | 381 | ]; |
382 | 382 | } |
383 | 383 |
@@ -20,24 +20,24 @@ discard block |
||
20 | 20 | use WikibaseQuality\ConstraintReport\ConstraintCheck\Result\CheckResultSerializer; |
21 | 21 | |
22 | 22 | return [ |
23 | - ConstraintsServices::LOGGING_HELPER => function( MediaWikiServices $services ) { |
|
23 | + ConstraintsServices::LOGGING_HELPER => function(MediaWikiServices $services) { |
|
24 | 24 | return new LoggingHelper( |
25 | 25 | $services->getStatsdDataFactory(), |
26 | - LoggerFactory::getInstance( 'WikibaseQualityConstraints' ), |
|
26 | + LoggerFactory::getInstance('WikibaseQualityConstraints'), |
|
27 | 27 | $services->getMainConfig() |
28 | 28 | ); |
29 | 29 | }, |
30 | 30 | |
31 | - ConstraintsServices::CONSTRAINT_REPOSITORY => function( MediaWikiServices $services ) { |
|
31 | + ConstraintsServices::CONSTRAINT_REPOSITORY => function(MediaWikiServices $services) { |
|
32 | 32 | return new ConstraintRepository(); |
33 | 33 | }, |
34 | 34 | |
35 | - ConstraintsServices::CONSTRAINT_LOOKUP => function( MediaWikiServices $services ) { |
|
36 | - $constraintRepository = ConstraintsServices::getConstraintRepository( $services ); |
|
37 | - return new CachingConstraintLookup( $constraintRepository ); |
|
35 | + ConstraintsServices::CONSTRAINT_LOOKUP => function(MediaWikiServices $services) { |
|
36 | + $constraintRepository = ConstraintsServices::getConstraintRepository($services); |
|
37 | + return new CachingConstraintLookup($constraintRepository); |
|
38 | 38 | }, |
39 | 39 | |
40 | - ConstraintsServices::CHECK_RESULT_SERIALIZER => function( MediaWikiServices $services ) { |
|
40 | + ConstraintsServices::CHECK_RESULT_SERIALIZER => function(MediaWikiServices $services) { |
|
41 | 41 | return new CheckResultSerializer( |
42 | 42 | new ConstraintSerializer( |
43 | 43 | false // constraint parameters are not exposed |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | ); |
49 | 49 | }, |
50 | 50 | |
51 | - ConstraintsServices::CHECK_RESULT_DESERIALIZER => function( MediaWikiServices $services ) { |
|
51 | + ConstraintsServices::CHECK_RESULT_DESERIALIZER => function(MediaWikiServices $services) { |
|
52 | 52 | // TODO in the future, get EntityIdParser and DataValueFactory from $services? |
53 | 53 | $repo = WikibaseRepo::getDefaultInstance(); |
54 | 54 | $entityIdParser = $repo->getEntityIdParser(); |
@@ -65,11 +65,11 @@ discard block |
||
65 | 65 | ); |
66 | 66 | }, |
67 | 67 | |
68 | - ConstraintsServices::VIOLATION_MESSAGE_SERIALIZER => function( MediaWikiServices $services ) { |
|
68 | + ConstraintsServices::VIOLATION_MESSAGE_SERIALIZER => function(MediaWikiServices $services) { |
|
69 | 69 | return new ViolationMessageSerializer(); |
70 | 70 | }, |
71 | 71 | |
72 | - ConstraintsServices::VIOLATION_MESSAGE_DESERIALIZER => function( MediaWikiServices $services ) { |
|
72 | + ConstraintsServices::VIOLATION_MESSAGE_DESERIALIZER => function(MediaWikiServices $services) { |
|
73 | 73 | // TODO in the future, get EntityIdParser and DataValueFactory from $services? |
74 | 74 | $repo = WikibaseRepo::getDefaultInstance(); |
75 | 75 | $entityIdParser = $repo->getEntityIdParser(); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | ); |
82 | 82 | }, |
83 | 83 | |
84 | - ConstraintsServices::CONSTRAINT_PARAMETER_PARSER => function( MediaWikiServices $services ) { |
|
84 | + ConstraintsServices::CONSTRAINT_PARAMETER_PARSER => function(MediaWikiServices $services) { |
|
85 | 85 | // TODO in the future, get DeserializerFactory and concept base URIs from $services? |
86 | 86 | $repo = WikibaseRepo::getDefaultInstance(); |
87 | 87 | $deserializerFactory = $repo->getBaseDataModelDeserializerFactory(); |
@@ -94,11 +94,11 @@ discard block |
||
94 | 94 | ); |
95 | 95 | }, |
96 | 96 | |
97 | - ConstraintsServices::CONNECTION_CHECKER_HELPER => function( MediaWikiServices $services ) { |
|
97 | + ConstraintsServices::CONNECTION_CHECKER_HELPER => function(MediaWikiServices $services) { |
|
98 | 98 | return new ConnectionCheckerHelper(); |
99 | 99 | }, |
100 | 100 | |
101 | - ConstraintsServices::RANGE_CHECKER_HELPER => function( MediaWikiServices $services ) { |
|
101 | + ConstraintsServices::RANGE_CHECKER_HELPER => function(MediaWikiServices $services) { |
|
102 | 102 | // TODO in the future, get UnitConverter from $services? |
103 | 103 | $repo = WikibaseRepo::getDefaultInstance(); |
104 | 104 | $unitConverter = $repo->getUnitConverter(); |
@@ -109,9 +109,9 @@ discard block |
||
109 | 109 | ); |
110 | 110 | }, |
111 | 111 | |
112 | - ConstraintsServices::SPARQL_HELPER => function( MediaWikiServices $services ) { |
|
113 | - $endpoint = $services->getMainConfig()->get( 'WBQualityConstraintsSparqlEndpoint' ); |
|
114 | - if ( $endpoint === '' ) { |
|
112 | + ConstraintsServices::SPARQL_HELPER => function(MediaWikiServices $services) { |
|
113 | + $endpoint = $services->getMainConfig()->get('WBQualityConstraintsSparqlEndpoint'); |
|
114 | + if ($endpoint === '') { |
|
115 | 115 | return new DummySparqlHelper(); |
116 | 116 | } |
117 | 117 | |
@@ -127,13 +127,13 @@ discard block |
||
127 | 127 | $entityIdParser, |
128 | 128 | $propertyDataTypeLookup, |
129 | 129 | $services->getMainWANObjectCache(), |
130 | - ConstraintsServices::getViolationMessageSerializer( $services ), |
|
131 | - ConstraintsServices::getViolationMessageDeserializer( $services ), |
|
130 | + ConstraintsServices::getViolationMessageSerializer($services), |
|
131 | + ConstraintsServices::getViolationMessageDeserializer($services), |
|
132 | 132 | $services->getStatsdDataFactory() |
133 | 133 | ); |
134 | 134 | }, |
135 | 135 | |
136 | - ConstraintsServices::TYPE_CHECKER_HELPER => function( MediaWikiServices $services ) { |
|
136 | + ConstraintsServices::TYPE_CHECKER_HELPER => function(MediaWikiServices $services) { |
|
137 | 137 | // TODO in the future, get EntityLookup from $services? |
138 | 138 | $repo = WikibaseRepo::getDefaultInstance(); |
139 | 139 | $entityLookup = $repo->getEntityLookup(); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | return new TypeCheckerHelper( |
142 | 142 | $entityLookup, |
143 | 143 | $services->getMainConfig(), |
144 | - ConstraintsServices::getSparqlHelper( $services ), |
|
144 | + ConstraintsServices::getSparqlHelper($services), |
|
145 | 145 | $services->getStatsdDataFactory() |
146 | 146 | ); |
147 | 147 | }, |
@@ -32,107 +32,107 @@ |
||
32 | 32 | const SPARQL_HELPER = 'WBQC_SparqlHelper'; |
33 | 33 | const TYPE_CHECKER_HELPER = 'WBQC_TypeCheckerHelper'; |
34 | 34 | |
35 | - private static function getService( MediaWikiServices $services = null, $name ) { |
|
36 | - if ( $services === null ) { |
|
35 | + private static function getService(MediaWikiServices $services = null, $name) { |
|
36 | + if ($services === null) { |
|
37 | 37 | $services = MediaWikiServices::getInstance(); |
38 | 38 | } |
39 | - return $services->getService( $name ); |
|
39 | + return $services->getService($name); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | 43 | * @param MediaWikiServices|null $services |
44 | 44 | * @return LoggingHelper |
45 | 45 | */ |
46 | - public static function getLoggingHelper( MediaWikiServices $services = null ) { |
|
47 | - return self::getService( $services, self::LOGGING_HELPER ); |
|
46 | + public static function getLoggingHelper(MediaWikiServices $services = null) { |
|
47 | + return self::getService($services, self::LOGGING_HELPER); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
51 | 51 | * @param MediaWikiServices|null $services |
52 | 52 | * @return ConstraintRepository |
53 | 53 | */ |
54 | - public static function getConstraintRepository( MediaWikiServices $services = null ) { |
|
55 | - return self::getService( $services, self::CONSTRAINT_REPOSITORY ); |
|
54 | + public static function getConstraintRepository(MediaWikiServices $services = null) { |
|
55 | + return self::getService($services, self::CONSTRAINT_REPOSITORY); |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
59 | 59 | * @param MediaWikiServices|null $services |
60 | 60 | * @return ConstraintLookup |
61 | 61 | */ |
62 | - public static function getConstraintLookup( MediaWikiServices $services = null ) { |
|
63 | - return self::getService( $services, self::CONSTRAINT_LOOKUP ); |
|
62 | + public static function getConstraintLookup(MediaWikiServices $services = null) { |
|
63 | + return self::getService($services, self::CONSTRAINT_LOOKUP); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
67 | 67 | * @param MediaWikiServices|null $services |
68 | 68 | * @return CheckResultSerializer |
69 | 69 | */ |
70 | - public static function getCheckResultSerializer( MediaWikiServices $services = null ) { |
|
71 | - return self::getService( $services, self::CHECK_RESULT_SERIALIZER ); |
|
70 | + public static function getCheckResultSerializer(MediaWikiServices $services = null) { |
|
71 | + return self::getService($services, self::CHECK_RESULT_SERIALIZER); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |
75 | 75 | * @param MediaWikiServices|null $services |
76 | 76 | * @return CheckResultDeserializer |
77 | 77 | */ |
78 | - public static function getCheckResultDeserializer( MediaWikiServices $services = null ) { |
|
79 | - return self::getService( $services, self::CHECK_RESULT_DESERIALIZER ); |
|
78 | + public static function getCheckResultDeserializer(MediaWikiServices $services = null) { |
|
79 | + return self::getService($services, self::CHECK_RESULT_DESERIALIZER); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
83 | 83 | * @param MediaWikiServices|null $services |
84 | 84 | * @return ViolationMessageSerializer |
85 | 85 | */ |
86 | - public static function getViolationMessageSerializer( MediaWikiServices $services = null ) { |
|
87 | - return self::getService( $services, self::VIOLATION_MESSAGE_SERIALIZER ); |
|
86 | + public static function getViolationMessageSerializer(MediaWikiServices $services = null) { |
|
87 | + return self::getService($services, self::VIOLATION_MESSAGE_SERIALIZER); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
91 | 91 | * @param MediaWikiServices|null $services |
92 | 92 | * @return ViolationMessageDeserializer |
93 | 93 | */ |
94 | - public static function getViolationMessageDeserializer( MediaWikiServices $services = null ) { |
|
95 | - return self::getService( $services, self::VIOLATION_MESSAGE_DESERIALIZER ); |
|
94 | + public static function getViolationMessageDeserializer(MediaWikiServices $services = null) { |
|
95 | + return self::getService($services, self::VIOLATION_MESSAGE_DESERIALIZER); |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | /** |
99 | 99 | * @param MediaWikiServices|null $services |
100 | 100 | * @return ConstraintParameterParser |
101 | 101 | */ |
102 | - public static function getConstraintParameterParser( MediaWikiServices $services = null ) { |
|
103 | - return self::getService( $services, self::CONSTRAINT_PARAMETER_PARSER ); |
|
102 | + public static function getConstraintParameterParser(MediaWikiServices $services = null) { |
|
103 | + return self::getService($services, self::CONSTRAINT_PARAMETER_PARSER); |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
107 | 107 | * @param MediaWikiServices|null $services |
108 | 108 | * @return ConnectionCheckerHelper |
109 | 109 | */ |
110 | - public static function getConnectionCheckerHelper( MediaWikiServices $services = null ) { |
|
111 | - return self::getService( $services, self::CONNECTION_CHECKER_HELPER ); |
|
110 | + public static function getConnectionCheckerHelper(MediaWikiServices $services = null) { |
|
111 | + return self::getService($services, self::CONNECTION_CHECKER_HELPER); |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | /** |
115 | 115 | * @param MediaWikiServices|null $services |
116 | 116 | * @return RangeCheckerHelper |
117 | 117 | */ |
118 | - public static function getRangeCheckerHelper( MediaWikiServices $services = null ) { |
|
119 | - return self::getService( $services, self::RANGE_CHECKER_HELPER ); |
|
118 | + public static function getRangeCheckerHelper(MediaWikiServices $services = null) { |
|
119 | + return self::getService($services, self::RANGE_CHECKER_HELPER); |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | /** |
123 | 123 | * @param MediaWikiServices|null $services |
124 | 124 | * @return SparqlHelper |
125 | 125 | */ |
126 | - public static function getSparqlHelper( MediaWikiServices $services = null ) { |
|
127 | - return self::getService( $services, self::SPARQL_HELPER ); |
|
126 | + public static function getSparqlHelper(MediaWikiServices $services = null) { |
|
127 | + return self::getService($services, self::SPARQL_HELPER); |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | /** |
131 | 131 | * @param MediaWikiServices|null $services |
132 | 132 | * @return TypeCheckerHelper |
133 | 133 | */ |
134 | - public static function getTypeCheckerHelper( MediaWikiServices $services = null ) { |
|
135 | - return self::getService( $services, self::TYPE_CHECKER_HELPER ); |
|
134 | + public static function getTypeCheckerHelper(MediaWikiServices $services = null) { |
|
135 | + return self::getService($services, self::TYPE_CHECKER_HELPER); |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | } |