mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PdfHandler
synced 2024-11-27 09:42:16 +00:00
Fix excluded PHPCS error MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected
Change-Id: Iba99ebfc6e96bdfbd61f2a8151c54f1e50272d26
This commit is contained in:
parent
c966f339e3
commit
68b4048e0e
|
@ -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" />
|
||||||
|
|
|
@ -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 ) {
|
||||||
|
|
Loading…
Reference in a new issue