From 68b4048e0e745b58ca8639cb6344fe0e7292d98a Mon Sep 17 00:00:00 2001 From: zoranzoki21 Date: Sat, 5 Mar 2022 01:09:55 +0100 Subject: [PATCH] Fix excluded PHPCS error MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected Change-Id: Iba99ebfc6e96bdfbd61f2a8151c54f1e50272d26 --- .phpcs.xml | 4 +--- includes/PdfHandler.php | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.phpcs.xml b/.phpcs.xml index 61b3ed3..eddb6dc 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -1,8 +1,6 @@ - - - + . diff --git a/includes/PdfHandler.php b/includes/PdfHandler.php index 7c01449..bfb4ca2 100644 --- a/includes/PdfHandler.php +++ b/includes/PdfHandler.php @@ -385,6 +385,10 @@ class PdfHandler extends ImageHandler { return false; } + /** + * @param File $file + * @return bool|mixed + */ protected function getDimensionInfo( File $file ) { $info = $file->getHandlerState( self::STATE_DIMENSION_INFO ); if ( !$info ) {