Completed
Push — master ( c10acf...f9d335 )
by
unknown
05:55
created
src/ConstraintCheck/Checker/SingleBestValueChecker.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -66,9 +66,9 @@  discard block
 block discarded – undo
66 66
 	 *
67 67
 	 * @return CheckResult
68 68
 	 */
69
-	public function checkConstraint( Context $context, Constraint $constraint ) {
70
-		if ( $context->getSnakRank() === Statement::RANK_DEPRECATED ) {
71
-			return new CheckResult( $context, $constraint, [], CheckResult::STATUS_DEPRECATED );
69
+	public function checkConstraint(Context $context, Constraint $constraint) {
70
+		if ($context->getSnakRank() === Statement::RANK_DEPRECATED) {
71
+			return new CheckResult($context, $constraint, [], CheckResult::STATUS_DEPRECATED);
72 72
 		}
73 73
 
74 74
 		$parameters = [];
@@ -80,13 +80,13 @@  discard block
 block discarded – undo
80 80
 
81 81
 		$propertyId = $context->getSnak()->getPropertyId();
82 82
 		$bestRankCount = $this->valueCountCheckerHelper->getPropertyCount(
83
-			$context->getSnakGroup( Context::GROUP_BEST_RANK, $separators ),
83
+			$context->getSnakGroup(Context::GROUP_BEST_RANK, $separators),
84 84
 			$propertyId
85 85
 		);
86 86
 
87
-		if ( $bestRankCount > 1 ) {
87
+		if ($bestRankCount > 1) {
88 88
 			$nonDeprecatedCount = $this->valueCountCheckerHelper->getPropertyCount(
89
-				$context->getSnakGroup( Context::GROUP_NON_DEPRECATED ),
89
+				$context->getSnakGroup(Context::GROUP_NON_DEPRECATED),
90 90
 				$propertyId
91 91
 			);
92 92
 			$message = $this->getViolationMessage(
@@ -101,15 +101,15 @@  discard block
 block discarded – undo
101 101
 			$status = CheckResult::STATUS_COMPLIANCE;
102 102
 		}
103 103
 
104
-		return new CheckResult( $context, $constraint, $parameters, $status, $message );
104
+		return new CheckResult($context, $constraint, $parameters, $status, $message);
105 105
 	}
106 106
 
107
-	public function checkConstraintParameters( Constraint $constraint ) {
107
+	public function checkConstraintParameters(Constraint $constraint) {
108 108
 		$constraintParameters = $constraint->getConstraintParameters();
109 109
 		$exceptions = [];
110 110
 		try {
111
-			$this->constraintParameterParser->parseSeparatorsParameter( $constraintParameters );
112
-		} catch ( ConstraintParameterException $e ) {
111
+			$this->constraintParameterParser->parseSeparatorsParameter($constraintParameters);
112
+		} catch (ConstraintParameterException $e) {
113 113
 			$exceptions[] = $e;
114 114
 		}
115 115
 		return $exceptions;
@@ -128,23 +128,23 @@  discard block
 block discarded – undo
128 128
 		$separators,
129 129
 		$propertyId
130 130
 	) {
131
-		if ( $bestRankCount === $nonDeprecatedCount ) {
132
-			if ( $separators === [] ) {
131
+		if ($bestRankCount === $nonDeprecatedCount) {
132
+			if ($separators === []) {
133 133
 				$messageKey = 'wbqc-violation-message-single-best-value-no-preferred';
134 134
 			} else {
135 135
 				$messageKey = 'wbqc-violation-message-single-best-value-no-preferred-separators';
136 136
 			}
137 137
 		} else {
138
-			if ( $separators === [] ) {
138
+			if ($separators === []) {
139 139
 				$messageKey = 'wbqc-violation-message-single-best-value-multi-preferred';
140 140
 			} else {
141 141
 				$messageKey = 'wbqc-violation-message-single-best-value-multi-preferred-separators';
142 142
 			}
143 143
 		}
144 144
 
145
-		return ( new ViolationMessage( $messageKey ) )
146
-			->withEntityId( $propertyId )
147
-			->withEntityIdList( $separators );
145
+		return (new ViolationMessage($messageKey))
146
+			->withEntityId($propertyId)
147
+			->withEntityIdList($separators);
148 148
 	}
149 149
 
150 150
 }
Please login to merge, or discard this patch.
src/ConstraintCheck/Checker/SingleValueChecker.php 1 patch
Spacing   +15 added lines, -16 removed lines patch added patch discarded remove patch
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
 	 * @throws ConstraintParameterException
68 68
 	 * @return CheckResult
69 69
 	 */
70
-	public function checkConstraint( Context $context, Constraint $constraint ) {
71
-		if ( $context->getSnakRank() === Statement::RANK_DEPRECATED ) {
72
-			return new CheckResult( $context, $constraint, [], CheckResult::STATUS_DEPRECATED );
70
+	public function checkConstraint(Context $context, Constraint $constraint) {
71
+		if ($context->getSnakRank() === Statement::RANK_DEPRECATED) {
72
+			return new CheckResult($context, $constraint, [], CheckResult::STATUS_DEPRECATED);
73 73
 		}
74 74
 
75 75
 		$parameters = [];
@@ -81,19 +81,19 @@  discard block
 block discarded – undo
81 81
 
82 82
 		$propertyId = $context->getSnak()->getPropertyId();
83 83
 		$propertyCount = $this->valueCountCheckerHelper->getPropertyCount(
84
-			$context->getSnakGroup( Context::GROUP_NON_DEPRECATED, $separators ),
84
+			$context->getSnakGroup(Context::GROUP_NON_DEPRECATED, $separators),
85 85
 			$propertyId
86 86
 		);
87 87
 
88
-		if ( $propertyCount > 1 ) {
89
-			$message = $this->getViolationMessage( $separators, $propertyId );
88
+		if ($propertyCount > 1) {
89
+			$message = $this->getViolationMessage($separators, $propertyId);
90 90
 			$status = CheckResult::STATUS_VIOLATION;
91 91
 		} else {
92 92
 			$message = null;
93 93
 			$status = CheckResult::STATUS_COMPLIANCE;
94 94
 		}
95 95
 
96
-		return new CheckResult( $context, $constraint, $parameters, $status, $message );
96
+		return new CheckResult($context, $constraint, $parameters, $status, $message);
97 97
 	}
98 98
 
99 99
 	/**
@@ -101,22 +101,21 @@  discard block
 block discarded – undo
101 101
 	 * @param PropertyId $propertyId
102 102
 	 * @return ViolationMessage
103 103
 	 */
104
-	private function getViolationMessage( array $separators, PropertyId $propertyId ) {
104
+	private function getViolationMessage(array $separators, PropertyId $propertyId) {
105 105
 		$messageKey = $separators === [] ?
106
-			'wbqc-violation-message-single-value' :
107
-			'wbqc-violation-message-single-value-separators';
106
+			'wbqc-violation-message-single-value' : 'wbqc-violation-message-single-value-separators';
108 107
 
109
-		return ( new ViolationMessage( $messageKey ) )
110
-			->withEntityId( $propertyId )
111
-			->withEntityIdList( $separators );
108
+		return (new ViolationMessage($messageKey))
109
+			->withEntityId($propertyId)
110
+			->withEntityIdList($separators);
112 111
 	}
113 112
 
114
-	public function checkConstraintParameters( Constraint $constraint ) {
113
+	public function checkConstraintParameters(Constraint $constraint) {
115 114
 		$constraintParameters = $constraint->getConstraintParameters();
116 115
 		$exceptions = [];
117 116
 		try {
118
-			$this->constraintParameterParser->parseSeparatorsParameter( $constraintParameters );
119
-		} catch ( ConstraintParameterException $e ) {
117
+			$this->constraintParameterParser->parseSeparatorsParameter($constraintParameters);
118
+		} catch (ConstraintParameterException $e) {
120 119
 			$exceptions[] = $e;
121 120
 		}
122 121
 		return $exceptions;
Please login to merge, or discard this patch.
src/ConstraintCheck/Checker/MultiValueChecker.php 1 patch
Spacing   +14 added lines, -15 removed lines patch added patch discarded remove patch
@@ -65,9 +65,9 @@  discard block
 block discarded – undo
65 65
 	 *
66 66
 	 * @return CheckResult
67 67
 	 */
68
-	public function checkConstraint( Context $context, Constraint $constraint ) {
69
-		if ( $context->getSnakRank() === Statement::RANK_DEPRECATED ) {
70
-			return new CheckResult( $context, $constraint, [], CheckResult::STATUS_DEPRECATED );
68
+	public function checkConstraint(Context $context, Constraint $constraint) {
69
+		if ($context->getSnakRank() === Statement::RANK_DEPRECATED) {
70
+			return new CheckResult($context, $constraint, [], CheckResult::STATUS_DEPRECATED);
71 71
 		}
72 72
 
73 73
 		$parameters = [];
@@ -79,33 +79,32 @@  discard block
 block discarded – undo
79 79
 
80 80
 		$propertyId = $context->getSnak()->getPropertyId();
81 81
 		$propertyCount = $this->valueCountCheckerHelper->getPropertyCount(
82
-			$context->getSnakGroup( Context::GROUP_NON_DEPRECATED, $separators ),
82
+			$context->getSnakGroup(Context::GROUP_NON_DEPRECATED, $separators),
83 83
 			$propertyId
84 84
 		);
85 85
 
86
-		if ( $propertyCount <= 1 ) {
87
-			$message = ( new ViolationMessage(
86
+		if ($propertyCount <= 1) {
87
+			$message = (new ViolationMessage(
88 88
 					$separators === [] ?
89
-						'wbqc-violation-message-multi-value' :
90
-						'wbqc-violation-message-multi-value-separators'
91
-				) )
92
-				->withEntityId( $propertyId )
93
-				->withEntityIdList( $separators );
89
+						'wbqc-violation-message-multi-value' : 'wbqc-violation-message-multi-value-separators'
90
+				))
91
+				->withEntityId($propertyId)
92
+				->withEntityIdList($separators);
94 93
 			$status = CheckResult::STATUS_VIOLATION;
95 94
 		} else {
96 95
 			$message = null;
97 96
 			$status = CheckResult::STATUS_COMPLIANCE;
98 97
 		}
99 98
 
100
-		return new CheckResult( $context, $constraint, $parameters, $status, $message );
99
+		return new CheckResult($context, $constraint, $parameters, $status, $message);
101 100
 	}
102 101
 
103
-	public function checkConstraintParameters( Constraint $constraint ) {
102
+	public function checkConstraintParameters(Constraint $constraint) {
104 103
 		$constraintParameters = $constraint->getConstraintParameters();
105 104
 		$exceptions = [];
106 105
 		try {
107
-			$this->constraintParameterParser->parseSeparatorsParameter( $constraintParameters );
108
-		} catch ( ConstraintParameterException $e ) {
106
+			$this->constraintParameterParser->parseSeparatorsParameter($constraintParameters);
107
+		} catch (ConstraintParameterException $e) {
109 108
 			$exceptions[] = $e;
110 109
 		}
111 110
 		return $exceptions;
Please login to merge, or discard this patch.
src/ConstraintReportFactory.php 1 patch
Spacing   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 	public static function getDefaultInstance() {
156 156
 		static $instance = null;
157 157
 
158
-		if ( $instance === null ) {
158
+		if ($instance === null) {
159 159
 			$wikibaseRepo = WikibaseRepo::getDefaultInstance();
160 160
 			$entityIdFormatter = $wikibaseRepo->getEntityIdHtmlLinkFormatterFactory()->getEntityIdFormatter(
161 161
 				$wikibaseRepo->getLanguageFallbackLabelDescriptionLookupFactory()->newLabelDescriptionLookup(
@@ -236,21 +236,21 @@  discard block
 block discarded – undo
236 236
 	 * @return DelegatingConstraintChecker
237 237
 	 */
238 238
 	public function getConstraintChecker() {
239
-		if ( $this->delegatingConstraintChecker === null ) {
239
+		if ($this->delegatingConstraintChecker === null) {
240 240
 			$this->delegatingConstraintChecker = new DelegatingConstraintChecker(
241 241
 				$this->lookup,
242 242
 				$this->getConstraintCheckerMap(),
243
-				new CachingConstraintLookup( $this->getConstraintRepository() ),
243
+				new CachingConstraintLookup($this->getConstraintRepository()),
244 244
 				$this->constraintParameterParser,
245 245
 				$this->statementGuidParser,
246 246
 				new LoggingHelper(
247 247
 					$this->dataFactory,
248
-					LoggerFactory::getInstance( 'WikibaseQualityConstraints' ),
248
+					LoggerFactory::getInstance('WikibaseQualityConstraints'),
249 249
 					$this->config
250 250
 				),
251
-				$this->config->get( 'WBQualityConstraintsCheckQualifiers' ),
252
-				$this->config->get( 'WBQualityConstraintsCheckReferences' ),
253
-				$this->config->get( 'WBQualityConstraintsPropertiesWithViolatingQualifiers' )
251
+				$this->config->get('WBQualityConstraintsCheckQualifiers'),
252
+				$this->config->get('WBQualityConstraintsCheckReferences'),
253
+				$this->config->get('WBQualityConstraintsPropertiesWithViolatingQualifiers')
254 254
 			);
255 255
 		}
256 256
 
@@ -261,10 +261,10 @@  discard block
 block discarded – undo
261 261
 	 * @return ConstraintChecker[]
262 262
 	 */
263 263
 	private function getConstraintCheckerMap() {
264
-		if ( $this->constraintCheckerMap === null ) {
264
+		if ($this->constraintCheckerMap === null) {
265 265
 			$connectionCheckerHelper = new ConnectionCheckerHelper();
266
-			$rangeCheckerHelper = new RangeCheckerHelper( $this->config, $this->unitConverter );
267
-			if ( $this->config->get( 'WBQualityConstraintsSparqlEndpoint' ) !== '' ) {
266
+			$rangeCheckerHelper = new RangeCheckerHelper($this->config, $this->unitConverter);
267
+			if ($this->config->get('WBQualityConstraintsSparqlEndpoint') !== '') {
268 268
 				$sparqlHelper = new SparqlHelper(
269 269
 					$this->config,
270 270
 					$this->rdfVocabulary,
@@ -287,74 +287,74 @@  discard block
 block discarded – undo
287 287
 			);
288 288
 
289 289
 			$this->constraintCheckerMap = [
290
-				$this->config->get( 'WBQualityConstraintsConflictsWithConstraintId' )
290
+				$this->config->get('WBQualityConstraintsConflictsWithConstraintId')
291 291
 					=> new ConflictsWithChecker(
292 292
 						$this->lookup,
293 293
 						$this->constraintParameterParser,
294 294
 						$connectionCheckerHelper,
295 295
 						$this->constraintParameterRenderer
296 296
 					),
297
-				$this->config->get( 'WBQualityConstraintsItemRequiresClaimConstraintId' )
297
+				$this->config->get('WBQualityConstraintsItemRequiresClaimConstraintId')
298 298
 					=> new ItemChecker(
299 299
 						$this->lookup,
300 300
 						$this->constraintParameterParser,
301 301
 						$connectionCheckerHelper,
302 302
 						$this->constraintParameterRenderer
303 303
 					),
304
-				$this->config->get( 'WBQualityConstraintsValueRequiresClaimConstraintId' )
304
+				$this->config->get('WBQualityConstraintsValueRequiresClaimConstraintId')
305 305
 					=> new TargetRequiredClaimChecker(
306 306
 						$this->lookup,
307 307
 						$this->constraintParameterParser,
308 308
 						$connectionCheckerHelper,
309 309
 						$this->constraintParameterRenderer
310 310
 					),
311
-				$this->config->get( 'WBQualityConstraintsSymmetricConstraintId' )
311
+				$this->config->get('WBQualityConstraintsSymmetricConstraintId')
312 312
 					=> new SymmetricChecker(
313 313
 						$this->lookup,
314 314
 						$connectionCheckerHelper,
315 315
 						$this->constraintParameterRenderer
316 316
 					),
317
-				$this->config->get( 'WBQualityConstraintsInverseConstraintId' )
317
+				$this->config->get('WBQualityConstraintsInverseConstraintId')
318 318
 					=> new InverseChecker(
319 319
 						$this->lookup,
320 320
 						$this->constraintParameterParser,
321 321
 						$connectionCheckerHelper,
322 322
 						$this->constraintParameterRenderer
323 323
 					),
324
-				$this->config->get( 'WBQualityConstraintsUsedAsQualifierConstraintId' )
324
+				$this->config->get('WBQualityConstraintsUsedAsQualifierConstraintId')
325 325
 					=> new QualifierChecker(),
326
-				$this->config->get( 'WBQualityConstraintsAllowedQualifiersConstraintId' )
326
+				$this->config->get('WBQualityConstraintsAllowedQualifiersConstraintId')
327 327
 					=> new QualifiersChecker(
328 328
 						$this->constraintParameterParser,
329 329
 						$this->constraintParameterRenderer
330 330
 					),
331
-				$this->config->get( 'WBQualityConstraintsMandatoryQualifierConstraintId' )
331
+				$this->config->get('WBQualityConstraintsMandatoryQualifierConstraintId')
332 332
 					=> new MandatoryQualifiersChecker(
333 333
 						$this->constraintParameterParser,
334 334
 						$this->constraintParameterRenderer
335 335
 					),
336
-				$this->config->get( 'WBQualityConstraintsRangeConstraintId' )
336
+				$this->config->get('WBQualityConstraintsRangeConstraintId')
337 337
 					=> new RangeChecker(
338 338
 						$this->propertyDataTypeLookup,
339 339
 						$this->constraintParameterParser,
340 340
 						$rangeCheckerHelper,
341 341
 						$this->constraintParameterRenderer
342 342
 					),
343
-				$this->config->get( 'WBQualityConstraintsDifferenceWithinRangeConstraintId' )
343
+				$this->config->get('WBQualityConstraintsDifferenceWithinRangeConstraintId')
344 344
 					=> new DiffWithinRangeChecker(
345 345
 						$this->constraintParameterParser,
346 346
 						$rangeCheckerHelper,
347 347
 						$this->constraintParameterRenderer,
348 348
 						$this->config
349 349
 					),
350
-				$this->config->get( 'WBQualityConstraintsTypeConstraintId' )
350
+				$this->config->get('WBQualityConstraintsTypeConstraintId')
351 351
 					=> new TypeChecker(
352 352
 						$this->lookup,
353 353
 						$this->constraintParameterParser,
354 354
 						$typeCheckerHelper,
355 355
 						$this->config
356 356
 					),
357
-				$this->config->get( 'WBQualityConstraintsValueTypeConstraintId' )
357
+				$this->config->get('WBQualityConstraintsValueTypeConstraintId')
358 358
 					=> new ValueTypeChecker(
359 359
 						$this->lookup,
360 360
 						$this->constraintParameterParser,
@@ -362,52 +362,52 @@  discard block
 block discarded – undo
362 362
 						$typeCheckerHelper,
363 363
 						$this->config
364 364
 					),
365
-				$this->config->get( 'WBQualityConstraintsSingleValueConstraintId' )
366
-					=> new SingleValueChecker( $this->constraintParameterParser ),
367
-				$this->config->get( 'WBQualityConstraintsMultiValueConstraintId' )
368
-					=> new MultiValueChecker( $this->constraintParameterParser ),
369
-				$this->config->get( 'WBQualityConstraintsDistinctValuesConstraintId' )
365
+				$this->config->get('WBQualityConstraintsSingleValueConstraintId')
366
+					=> new SingleValueChecker($this->constraintParameterParser),
367
+				$this->config->get('WBQualityConstraintsMultiValueConstraintId')
368
+					=> new MultiValueChecker($this->constraintParameterParser),
369
+				$this->config->get('WBQualityConstraintsDistinctValuesConstraintId')
370 370
 					=> new UniqueValueChecker(
371 371
 						$this->constraintParameterRenderer,
372 372
 						$sparqlHelper
373 373
 					),
374
-				$this->config->get( 'WBQualityConstraintsFormatConstraintId' )
374
+				$this->config->get('WBQualityConstraintsFormatConstraintId')
375 375
 					=> new FormatChecker(
376 376
 						$this->constraintParameterParser,
377 377
 						$this->constraintParameterRenderer,
378 378
 						$this->config,
379 379
 						$sparqlHelper
380 380
 					),
381
-				$this->config->get( 'WBQualityConstraintsCommonsLinkConstraintId' )
381
+				$this->config->get('WBQualityConstraintsCommonsLinkConstraintId')
382 382
 					=> new CommonsLinkChecker(
383 383
 						$this->constraintParameterParser,
384 384
 						$this->constraintParameterRenderer,
385 385
 						$this->titleParser
386 386
 					),
387
-				$this->config->get( 'WBQualityConstraintsOneOfConstraintId' )
387
+				$this->config->get('WBQualityConstraintsOneOfConstraintId')
388 388
 					=> new OneOfChecker(
389 389
 						$this->constraintParameterParser,
390 390
 						$this->constraintParameterRenderer
391 391
 					),
392
-				$this->config->get( 'WBQualityConstraintsUsedForValuesOnlyConstraintId' )
392
+				$this->config->get('WBQualityConstraintsUsedForValuesOnlyConstraintId')
393 393
 					=> new ValueOnlyChecker(),
394
-				$this->config->get( 'WBQualityConstraintsUsedAsReferenceConstraintId' )
394
+				$this->config->get('WBQualityConstraintsUsedAsReferenceConstraintId')
395 395
 					=> new ReferenceChecker(),
396
-				$this->config->get( 'WBQualityConstraintsNoBoundsConstraintId' )
396
+				$this->config->get('WBQualityConstraintsNoBoundsConstraintId')
397 397
 					=> new NoBoundsChecker(),
398
-				$this->config->get( 'WBQualityConstraintsAllowedUnitsConstraintId' )
398
+				$this->config->get('WBQualityConstraintsAllowedUnitsConstraintId')
399 399
 					=> new AllowedUnitsChecker(
400 400
 						$this->constraintParameterParser,
401 401
 						$this->unitConverter
402 402
 					),
403
-				$this->config->get( 'WBQualityConstraintsSingleBestValueConstraintId' )
404
-					=> new SingleBestValueChecker( $this->constraintParameterParser ),
405
-				$this->config->get( 'WBQualityConstraintsAllowedEntityTypesConstraintId' )
403
+				$this->config->get('WBQualityConstraintsSingleBestValueConstraintId')
404
+					=> new SingleBestValueChecker($this->constraintParameterParser),
405
+				$this->config->get('WBQualityConstraintsAllowedEntityTypesConstraintId')
406 406
 					=> new EntityTypeChecker(
407 407
 						$this->constraintParameterParser,
408 408
 						$this->constraintParameterRenderer
409 409
 					),
410
-				$this->config->get( 'WBQualityConstraintsNoneOfConstraintId' )
410
+				$this->config->get('WBQualityConstraintsNoneOfConstraintId')
411 411
 					=> new NoneOfChecker(
412 412
 						$this->constraintParameterParser,
413 413
 						$this->constraintParameterRenderer
@@ -422,26 +422,26 @@  discard block
 block discarded – undo
422 422
 	 * @return array[]
423 423
 	 */
424 424
 	public function getConstraintParameterMap() {
425
-		if ( $this->constraintParameterMap === null ) {
425
+		if ($this->constraintParameterMap === null) {
426 426
 			$this->constraintParameterMap = [
427
-				'Commons link' => [ 'namespace' ],
428
-				'Conflicts with' => [ 'property', 'item' ],
429
-				'Diff within range' => [ 'property', 'minimum_quantity', 'maximum_quantity' ],
430
-				'Format' => [ 'pattern' ],
431
-				'Inverse' => [ 'property' ],
432
-				'Item' => [ 'property', 'item' ],
433
-				'Mandatory qualifiers' => [ 'property' ],
427
+				'Commons link' => ['namespace'],
428
+				'Conflicts with' => ['property', 'item'],
429
+				'Diff within range' => ['property', 'minimum_quantity', 'maximum_quantity'],
430
+				'Format' => ['pattern'],
431
+				'Inverse' => ['property'],
432
+				'Item' => ['property', 'item'],
433
+				'Mandatory qualifiers' => ['property'],
434 434
 				'Multi value' => [],
435
-				'One of' => [ 'item' ],
435
+				'One of' => ['item'],
436 436
 				'Qualifier' => [],
437
-				'Qualifiers' => [ 'property' ],
438
-				'Range' => [ 'minimum_quantity', 'maximum_quantity', 'minimum_date', 'maximum_date' ],
437
+				'Qualifiers' => ['property'],
438
+				'Range' => ['minimum_quantity', 'maximum_quantity', 'minimum_date', 'maximum_date'],
439 439
 				'Single value' => [],
440 440
 				'Symmetric' => [],
441
-				'Target required claim' => [ 'property', 'item' ],
442
-				'Type' => [ 'class', 'relation' ],
441
+				'Target required claim' => ['property', 'item'],
442
+				'Type' => ['class', 'relation'],
443 443
 				'Unique value' => [],
444
-				'Value type' => [ 'class', 'relation' ]
444
+				'Value type' => ['class', 'relation']
445 445
 			];
446 446
 		}
447 447
 
@@ -452,7 +452,7 @@  discard block
 block discarded – undo
452 452
 	 * @return ConstraintRepository
453 453
 	 */
454 454
 	public function getConstraintRepository() {
455
-		if ( $this->constraintRepository === null ) {
455
+		if ($this->constraintRepository === null) {
456 456
 			$this->constraintRepository = new ConstraintRepository();
457 457
 		}
458 458
 
Please login to merge, or discard this patch.