@@ -255,7 +255,7 @@ public function __construct(Config $config)
255
255
}
256
256
257
257
if ($ numSniffs === 0 ) {
258
- $ this ->msgCache ->add ('No sniffs were registered. ' , MsgCollector ::ERROR );
258
+ $ this ->msgCache ->add ('No sniffs were registered. ' , MessageCollector ::ERROR );
259
259
}
260
260
261
261
$ this ->displayCachedMessages ();
@@ -1040,7 +1040,7 @@ private function expandRulesetReference($ref, $rulesetDir, $depth=0)
1040
1040
}
1041
1041
} else {
1042
1042
if (is_file ($ ref ) === false ) {
1043
- $ this ->msgCache ->add ("Referenced sniff \"$ ref \" does not exist. " , MsgCollector ::ERROR );
1043
+ $ this ->msgCache ->add ("Referenced sniff \"$ ref \" does not exist. " , MessageCollector ::ERROR );
1044
1044
return [];
1045
1045
}
1046
1046
@@ -1131,7 +1131,7 @@ private function processRule($rule, $newSniffs, $depth=0)
1131
1131
$ type = strtolower ((string ) $ rule ->type );
1132
1132
if ($ type !== 'error ' && $ type !== 'warning ' ) {
1133
1133
$ message = "Message type \"$ type \" for \"$ code \" is invalid; must be \"error \" or \"warning \". " ;
1134
- $ this ->msgCache ->add ($ message , MsgCollector ::ERROR );
1134
+ $ this ->msgCache ->add ($ message , MessageCollector ::ERROR );
1135
1135
} else {
1136
1136
$ this ->ruleset [$ code ]['type ' ] = $ type ;
1137
1137
if (PHP_CODESNIFFER_VERBOSITY > 1 ) {
@@ -1461,7 +1461,7 @@ public function populateTokenListeners()
1461
1461
$ tokens = $ this ->sniffs [$ sniffClass ]->register ();
1462
1462
if (is_array ($ tokens ) === false ) {
1463
1463
$ msg = "The sniff {$ sniffClass }::register() method must return an array. " ;
1464
- $ this ->msgCache ->add ($ msg , MsgCollector ::ERROR );
1464
+ $ this ->msgCache ->add ($ msg , MessageCollector ::ERROR );
1465
1465
1466
1466
// Unregister the sniff.
1467
1467
unset($ this ->sniffs [$ sniffClass ], $ this ->sniffCodes [$ sniffCode ], $ this ->deprecatedSniffs [$ sniffCode ]);
@@ -1577,7 +1577,7 @@ public function setSniffProperty($sniffClass, $name, $settings)
1577
1577
if ($ settings ['scope ' ] === 'sniff ' ) {
1578
1578
$ notice = "Property \"$ propertyName \" does not exist on sniff " ;
1579
1579
$ notice .= array_search ($ sniffClass , $ this ->sniffCodes , true ).'. ' ;
1580
- $ this ->msgCache ->add ($ notice , MsgCollector ::ERROR );
1580
+ $ this ->msgCache ->add ($ notice , MessageCollector ::ERROR );
1581
1581
}
1582
1582
1583
1583
return ;
0 commit comments