@@ -255,7 +255,7 @@ public function __construct(Config $config)
255255 }
256256
257257 if ($ numSniffs === 0 ) {
258- $ this ->msgCache ->add ('No sniffs were registered. ' , MsgCollector ::ERROR );
258+ $ this ->msgCache ->add ('No sniffs were registered. ' , MessageCollector ::ERROR );
259259 }
260260
261261 $ this ->displayCachedMessages ();
@@ -1040,7 +1040,7 @@ private function expandRulesetReference($ref, $rulesetDir, $depth=0)
10401040 }
10411041 } else {
10421042 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 );
10441044 return [];
10451045 }
10461046
@@ -1131,7 +1131,7 @@ private function processRule($rule, $newSniffs, $depth=0)
11311131 $ type = strtolower ((string ) $ rule ->type );
11321132 if ($ type !== 'error ' && $ type !== 'warning ' ) {
11331133 $ 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 );
11351135 } else {
11361136 $ this ->ruleset [$ code ]['type ' ] = $ type ;
11371137 if (PHP_CODESNIFFER_VERBOSITY > 1 ) {
@@ -1461,7 +1461,7 @@ public function populateTokenListeners()
14611461 $ tokens = $ this ->sniffs [$ sniffClass ]->register ();
14621462 if (is_array ($ tokens ) === false ) {
14631463 $ msg = "The sniff {$ sniffClass }::register() method must return an array. " ;
1464- $ this ->msgCache ->add ($ msg , MsgCollector ::ERROR );
1464+ $ this ->msgCache ->add ($ msg , MessageCollector ::ERROR );
14651465
14661466 // Unregister the sniff.
14671467 unset($ this ->sniffs [$ sniffClass ], $ this ->sniffCodes [$ sniffCode ], $ this ->deprecatedSniffs [$ sniffCode ]);
@@ -1577,7 +1577,7 @@ public function setSniffProperty($sniffClass, $name, $settings)
15771577 if ($ settings ['scope ' ] === 'sniff ' ) {
15781578 $ notice = "Property \"$ propertyName \" does not exist on sniff " ;
15791579 $ notice .= array_search ($ sniffClass , $ this ->sniffCodes , true ).'. ' ;
1580- $ this ->msgCache ->add ($ notice , MsgCollector ::ERROR );
1580+ $ this ->msgCache ->add ($ notice , MessageCollector ::ERROR );
15811581 }
15821582
15831583 return ;
0 commit comments