diff options
Diffstat (limited to 'includes')
-rw-r--r-- | includes/BadFileLookup.php | 3 | ||||
-rw-r--r-- | includes/WebRequestUpload.php | 3 | ||||
-rw-r--r-- | includes/libs/rdbms/database/Database.php | 1 | ||||
-rw-r--r-- | includes/logging/ProtectLogFormatter.php | 2 |
4 files changed, 6 insertions, 3 deletions
diff --git a/includes/BadFileLookup.php b/includes/BadFileLookup.php index 8419f1082bc4..ce0e04efea46 100644 --- a/includes/BadFileLookup.php +++ b/includes/BadFileLookup.php @@ -128,7 +128,6 @@ class BadFileLookup { } return isset( $this->badFiles[$name] ) && ( !$contextTitle || - !isset( $this->badFiles[$name][$contextTitle->getNamespace()] - [$contextTitle->getDBkey()] ) ); + !isset( $this->badFiles[$name][$contextTitle->getNamespace()][$contextTitle->getDBkey()] ) ); } } diff --git a/includes/WebRequestUpload.php b/includes/WebRequestUpload.php index 871412a82103..a492ae9be825 100644 --- a/includes/WebRequestUpload.php +++ b/includes/WebRequestUpload.php @@ -22,6 +22,9 @@ use MediaWiki\MediaWikiServices; +// The point of this class is to be a wrapper around super globals +// phpcs:disable MediaWiki.Usage.SuperGlobalsUsage.SuperGlobals + /** * Object to access the $_FILES array * diff --git a/includes/libs/rdbms/database/Database.php b/includes/libs/rdbms/database/Database.php index c89a7476401e..5a0b57edb13e 100644 --- a/includes/libs/rdbms/database/Database.php +++ b/includes/libs/rdbms/database/Database.php @@ -68,6 +68,7 @@ abstract class Database implements IDatabase, IMaintainableDatabase, LoggerAware /** @var DatabaseDomain */ protected $currentDomain; + // phpcs:ignore MediaWiki.Commenting.PropertyDocumentation.ObjectTypeHintVar /** @var object|resource|null Database connection */ protected $conn; diff --git a/includes/logging/ProtectLogFormatter.php b/includes/logging/ProtectLogFormatter.php index 0894eb3163f0..ce8d5c91f5d9 100644 --- a/includes/logging/ProtectLogFormatter.php +++ b/includes/logging/ProtectLogFormatter.php @@ -91,7 +91,7 @@ class ProtectLogFormatter extends LogFormatter { $title = $this->entry->getTarget(); $links = []; if ( $title->exists() ) { - $links [] = $linkRenderer->makeLink( $title, + $links[] = $linkRenderer->makeLink( $title, $this->msg( 'hist' )->text(), [], [ |