Merge "Consistency tweaks"
[lhc/web/wiklou.git] / includes / api / ApiDelete.php
index c09cad3..116c8cd 100644 (file)
@@ -89,9 +89,9 @@ class ApiDelete extends ApiBase {
        }
 
        /**
-        * @param $title Title
-        * @param $user User doing the action
-        * @param $token String
+        * @param Title $title
+        * @param User $user User doing the action
+        * @param string $token
         * @return array
         */
        private static function getPermissionsError( $title, $user, $token ) {
@@ -102,8 +102,8 @@ class ApiDelete extends ApiBase {
        /**
         * We have our own delete() function, since Article.php's implementation is split in two phases
         *
-        * @param $page Page|WikiPage object to work on
-        * @param $user User doing the action
+        * @param Page|WikiPage $page Page or WikiPage object to work on
+        * @param User $user User doing the action
         * @param string $token delete token (same as edit token)
         * @param string|null $reason reason for the deletion. Autogenerated if NULL
         * @return Status|array
@@ -240,7 +240,7 @@ class ApiDelete extends ApiBase {
        }
 
        public function getDescription() {
-               return 'Delete a page';
+               return 'Delete a page.';
        }
 
        public function getPossibleErrors() {