diff options
author | Brian Evans <grknight@gentoo.org> | 2020-10-02 14:49:18 -0400 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2020-10-02 14:49:18 -0400 |
commit | d31271608550a4b9e7e5b616d8d5eeb83b892e53 (patch) | |
tree | b06377cdc3748c3c1ac6d25eaa375824a1f7468b /CommentStreams/includes/ApiCSVote.php | |
parent | Update CheckUser to 1.35 (diff) | |
download | extensions-d31271608550a4b9e7e5b616d8d5eeb83b892e53.tar.gz extensions-d31271608550a4b9e7e5b616d8d5eeb83b892e53.tar.bz2 extensions-d31271608550a4b9e7e5b616d8d5eeb83b892e53.zip |
Update CommentStreams to 1.35
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'CommentStreams/includes/ApiCSVote.php')
-rw-r--r-- | CommentStreams/includes/ApiCSVote.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/CommentStreams/includes/ApiCSVote.php b/CommentStreams/includes/ApiCSVote.php index e93021f1..3e92c346 100644 --- a/CommentStreams/includes/ApiCSVote.php +++ b/CommentStreams/includes/ApiCSVote.php @@ -21,6 +21,10 @@ * DEALINGS IN THE SOFTWARE. */ +namespace MediaWiki\Extension\CommentStreams; + +use ApiBase; + class ApiCSVote extends ApiCSBase { /** @@ -44,7 +48,7 @@ class ApiCSVote extends ApiCSBase { $vote = $this->getMain()->getVal( 'vote' ); - if ( !is_null( $this->comment->getParentId() ) ) { + if ( $this->comment->getParentId() !== null ) { $this->dieCustomUsageMessage( 'commentstreams-api-error-vote-novoteonreply' ); } @@ -58,7 +62,7 @@ class ApiCSVote extends ApiCSBase { } /** - * @return array allowed paramters + * @return array allowed parameters */ public function getAllowedParams() { return array_merge( parent::getAllowedParams(), |