Fix excluded PHPCS error MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected

Change-Id: Iba99ebfc6e96bdfbd61f2a8151c54f1e50272d26
This commit is contained in:
zoranzoki21 2022-03-05 01:09:55 +01:00 committed by Zoranzoki21
parent c966f339e3
commit 68b4048e0e
2 changed files with 5 additions and 3 deletions

View file

@ -1,8 +1,6 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<ruleset> <ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki"> <rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
</rule>
<file>.</file> <file>.</file>
<arg name="extensions" value="php" /> <arg name="extensions" value="php" />
<arg name="encoding" value="UTF-8" /> <arg name="encoding" value="UTF-8" />

View file

@ -385,6 +385,10 @@ class PdfHandler extends ImageHandler {
return false; return false;
} }
/**
* @param File $file
* @return bool|mixed
*/
protected function getDimensionInfo( File $file ) { protected function getDimensionInfo( File $file ) {
$info = $file->getHandlerState( self::STATE_DIMENSION_INFO ); $info = $file->getHandlerState( self::STATE_DIMENSION_INFO );
if ( !$info ) { if ( !$info ) {