From 7eb7f04771a7c246ec67b15b445ba588daa4c92c Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Fri, 27 Apr 2018 21:53:19 +0200 Subject: [PATCH] Change @throw to @throws Phpcs does not look at private functions Change-Id: I9adedf1f1c488e74db7de89e97cb6a481bf7d567 --- includes/CommentStore.php | 2 +- includes/Storage/RevisionStore.php | 6 +++--- includes/Storage/SqlBlobStore.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/CommentStore.php b/includes/CommentStore.php index 55f6857267..e9b08e89dc 100644 --- a/includes/CommentStore.php +++ b/includes/CommentStore.php @@ -134,7 +134,7 @@ class CommentStore { /** * Compat method allowing use of self::newKey until removed. * @param string|null $methodKey - * @throw InvalidArgumentException + * @throws InvalidArgumentException * @return string */ private function getKey( $methodKey = null ) { diff --git a/includes/Storage/RevisionStore.php b/includes/Storage/RevisionStore.php index 1329023ffd..5b3daf45a4 100644 --- a/includes/Storage/RevisionStore.php +++ b/includes/Storage/RevisionStore.php @@ -283,7 +283,7 @@ class RevisionStore * @param mixed $value * @param string $name * - * @throw IncompleteRevisionException if $value is null + * @throws IncompleteRevisionException if $value is null * @return mixed $value, if $value is not null */ private function failOnNull( $value, $name ) { @@ -300,7 +300,7 @@ class RevisionStore * @param mixed $value * @param string $name * - * @throw IncompleteRevisionException if $value is empty + * @throws IncompleteRevisionException if $value is empty * @return mixed $value, if $value is not null */ private function failOnEmpty( $value, $name ) { @@ -889,7 +889,7 @@ class RevisionStore * @param string|null $blobFormat MIME type indicating how $dataBlob is encoded * @param int $queryFlags * - * @throw RevisionAccessException + * @throws RevisionAccessException * @return Content */ private function loadSlotContent( diff --git a/includes/Storage/SqlBlobStore.php b/includes/Storage/SqlBlobStore.php index 70d7d4210e..72de2c961a 100644 --- a/includes/Storage/SqlBlobStore.php +++ b/includes/Storage/SqlBlobStore.php @@ -292,7 +292,7 @@ class SqlBlobStore implements IDBAccessObject, BlobStore { * @param string $blobAddress * @param int $queryFlags * - * @throw BlobAccessException + * @throws BlobAccessException * @return string|false */ private function fetchBlob( $blobAddress, $queryFlags ) { -- 2.20.1