@@ -35,16 +35,16 @@ |
||
35 | 35 | ]; |
36 | 36 | } |
37 | 37 | |
38 | - public function checkConstraint( Context $context, Constraint $constraint ) { |
|
39 | - if ( $context->getType() === Context::TYPE_REFERENCE ) { |
|
40 | - return new CheckResult( $context, $constraint, [], CheckResult::STATUS_COMPLIANCE, '' ); |
|
38 | + public function checkConstraint(Context $context, Constraint $constraint) { |
|
39 | + if ($context->getType() === Context::TYPE_REFERENCE) { |
|
40 | + return new CheckResult($context, $constraint, [], CheckResult::STATUS_COMPLIANCE, ''); |
|
41 | 41 | } else { |
42 | - $message = wfMessage( 'wbqc-violation-message-reference' )->escaped(); |
|
43 | - return new CheckResult( $context, $constraint, [], CheckResult::STATUS_VIOLATION, $message ); |
|
42 | + $message = wfMessage('wbqc-violation-message-reference')->escaped(); |
|
43 | + return new CheckResult($context, $constraint, [], CheckResult::STATUS_VIOLATION, $message); |
|
44 | 44 | } |
45 | 45 | } |
46 | 46 | |
47 | - public function checkConstraintParameters( Constraint $constraint ) { |
|
47 | + public function checkConstraintParameters(Constraint $constraint) { |
|
48 | 48 | // no parameters |
49 | 49 | return []; |
50 | 50 | } |