@@ -324,7 +324,7 @@ protected function processTags($commentStart, $commentEnd)
324
324
if (in_array ($ tag , $ foundTags ) === false ) {
325
325
$ error = 'Missing @%s tag in file comment ' ;
326
326
$ data = array ($ tag );
327
- $ this ->currentFile ->addError ($ error , $ commentEnd , 'MissingTag ' , $ data );
327
+ $ this ->currentFile ->addError ($ error , $ commentEnd , 'Missing ' . ucfirst ( $ tag ). ' Tag ' , $ data );
328
328
continue ;
329
329
}
330
330
@@ -351,7 +351,7 @@ protected function processTags($commentStart, $commentEnd)
351
351
if (count ($ foundIndexes ) > 1 ) {
352
352
$ error = 'Only 1 @%s tag is allowed in file comment ' ;
353
353
$ data = array ($ tag );
354
- $ this ->currentFile ->addError ($ error , $ errorPos , 'DuplicateTag ' , $ data );
354
+ $ this ->currentFile ->addError ($ error , $ errorPos , 'Duplicate ' . ucfirst ( $ tag ). ' Tag ' , $ data );
355
355
}
356
356
357
357
// Check tag order.
@@ -363,7 +363,7 @@ protected function processTags($commentStart, $commentEnd)
363
363
$ tag ,
364
364
$ orderText ,
365
365
);
366
- $ this ->currentFile ->addError ($ error , $ errorPos , 'TagOrder ' , $ data );
366
+ $ this ->currentFile ->addError ($ error , $ errorPos , ucfirst ( $ tag ). 'TagOrder ' , $ data );
367
367
}
368
368
369
369
// Store the indentation of each tag.
@@ -403,7 +403,7 @@ protected function processTags($commentStart, $commentEnd)
403
403
$ expected ,
404
404
$ space ,
405
405
);
406
- $ this ->currentFile ->addError ($ error , $ indentInfo ['errorPos ' ], 'TagIndent ' , $ data );
406
+ $ this ->currentFile ->addError ($ error , $ indentInfo ['errorPos ' ], ucfirst ( $ indentInfo [ ' tag ' ]). 'TagIndent ' , $ data );
407
407
}
408
408
}
409
409
0 commit comments