In rMWdf706d2457e6: Add // @codingStandardsIgnoreFile to FormatMetadata I disabled parsing of the file entirely because it caused phcps to throw errors. This is not ideal and we should figure out if we can work around this in PHPCS or whether the file needs refactoring...or something.
Legoktm, Could you elaborate on how to reproduce this ?
I took the latest includes/media/FormatMetadata.php from core and I don't get any issues with parsing right now.
I'm using the following args phpcs --standard=./MediaWiki ../core/includes/media/FormatMetadata.php