Fix parameter documentation
authorMatthias Schmidt <gravatronics@live.com>
Wed, 6 Apr 2016 14:52:01 +0000 (16:52 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 6 Apr 2016 14:52:01 +0000 (16:52 +0200)
29 files changed:
wcfsetup/install.php
wcfsetup/install/files/lib/acp/action/UninstallPackageAction.class.php
wcfsetup/install/files/lib/action/AJAXInvokeAction.class.php
wcfsetup/install/files/lib/action/PollAction.class.php
wcfsetup/install/files/lib/data/comment/response/CommentResponse.class.php
wcfsetup/install/files/lib/data/language/LanguageEditor.class.php
wcfsetup/install/files/lib/data/like/object/ILikeObject.class.php
wcfsetup/install/files/lib/data/like/object/LikeObject.class.php
wcfsetup/install/files/lib/data/package/Package.class.php
wcfsetup/install/files/lib/data/page/PageNodeTree.class.php
wcfsetup/install/files/lib/data/template/Template.class.php
wcfsetup/install/files/lib/data/user/UserEditor.class.php
wcfsetup/install/files/lib/system/WCF.class.php
wcfsetup/install/files/lib/system/bbcode/AttachmentBBCode.class.php
wcfsetup/install/files/lib/system/cache/runtime/IRuntimeCache.class.php
wcfsetup/install/files/lib/system/condition/ICondition.class.php
wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php
wcfsetup/install/files/lib/system/email/Email.class.php
wcfsetup/install/files/lib/system/exception/AJAXException.class.php
wcfsetup/install/files/lib/system/io/FTP.class.php
wcfsetup/install/files/lib/system/label/object/ILabelObjectHandler.class.php
wcfsetup/install/files/lib/system/language/I18nHandler.class.php
wcfsetup/install/files/lib/system/package/PackageInstallationNodeBuilder.class.php
wcfsetup/install/files/lib/system/package/PackageInstallationScheduler.class.php
wcfsetup/install/files/lib/system/style/StyleCompiler.class.php
wcfsetup/install/files/lib/system/upload/UploadHandler.class.php
wcfsetup/install/files/lib/system/user/notification/object/type/IMultiRecipientCommentUserNotificationObjectType.class.php
wcfsetup/install/files/lib/system/user/object/watch/UserObjectWatchHandler.class.php
wcfsetup/install/files/lib/util/DirectoryUtil.class.php

index 292fa30e3d3e57c5785c6a0bffa5a573850e8530..3610436b2ca3783919541dbea01f5819f9564bb6 100644 (file)
@@ -59,9 +59,9 @@ class SystemException extends \Exception implements IPrintableException {
        /**
         * Creates a new SystemException.
         *
-        * @param       message         string          error message
-        * @param       code            integer         error code
-        * @param       description     string          description of the error
+        * @param       string          $message        error message
+        * @param       integer         $code           error code
+        * @param       string          $description    description of the error
         */
        public function __construct($message = '', $code = 0, $description = '') {
                parent::__construct($message, $code);
@@ -174,6 +174,9 @@ spl_autoload_register(function($className) {
 
 /**
  * Escapes strings for execution in sql queries.
+ * 
+ * @param      string          $string
+ * @return     string
  */
 function escapeString($string) {
        return \wcf\system\WCF::getDB()->escapeString($string);
@@ -449,8 +452,8 @@ class Tar {
         * Returns an associative array with information
         * about a specific file in the archive.
         *
-        * @param       mixed   $fileindex      index or name of the requested file
-        * @return      array   $fileInfo
+        * @param       mixed   $fileIndex      index or name of the requested file
+        * @return      array
         */
        public function getFileInfo($fileIndex) {
                if (!is_int($fileIndex)) {
index f7f434fd0cf5e25d64c6374db685064a9146f5ad..5f7b4c9141805b681b9c3eb6ef8f2364fe21a0d0 100644 (file)
@@ -99,7 +99,6 @@ class UninstallPackageAction extends InstallPackageAction {
        /**
         * Uninstalls node components and returns next node.
         * 
-        * @param       string          $node
         * @return      string
         */
        public function stepUninstall() {
index 0b0ae9d8e99e309e85ce8b7623747137e36067f8..e09d5f1a087fe604015b94fed2edbfb8c3a4a9df 100644 (file)
@@ -228,9 +228,7 @@ class AJAXInvokeAction extends AbstractSecureAction {
         * )
         * 
         * @param       array           $data
-        * @param       string          $className
-        * @param       string          $actionName
-        * @return      \wcf\action\AJAXInvokeAction
+        * @return      AJAXInvokeAction
         */
        public static function debugCall(array $data) {
                // validate $data array
index fb3fef9f7c8ab846292f8a4eccbef16161c44ea7..94b3ab5bc29ab41a51a96d068e291923d2a47797 100644 (file)
@@ -154,6 +154,8 @@ class PollAction extends AJAXProxyAction {
        
        /**
         * Renders the result template.
+        * 
+        * @param       array           $returnValues
         */
        public function getResult(array &$returnValues) {
                WCF::getTPL()->assign(array(
@@ -165,6 +167,8 @@ class PollAction extends AJAXProxyAction {
        
        /**
         * Renders the vote template.
+        *
+        * @param       array           $returnValues
         */
        public function getVote(array &$returnValues) {
                WCF::getTPL()->assign(array(
index 4b307f60d84d0f9dc5355809e12e419665b560d0..39d371e6317516cf42276abc71dc72f042651538 100644 (file)
@@ -67,7 +67,7 @@ class CommentResponse extends DatabaseObject implements IMessage {
        /**
         * Sets related comment object.
         * 
-        * @param       Comment
+        * @param       Comment         $comment
         */
        public function setComment(Comment $comment) {
                if ($this->commentID == $comment->commentID) {
index 512ad34b2d53d438e8e9f2c4c40ab3aef7791be1..de04c4444235046e9d82dee7f67d1aed5fe721ee 100644 (file)
@@ -494,9 +494,8 @@ class LanguageEditor extends DatabaseObjectEditor implements IEditableCachedObje
         * @param       string          $search         search query
         * @param       string          $replace
         * @param       integer         $languageID
-        * @param       boolean         $useRegex
-        * @param       boolean         $caseSensitive
-        * @param       boolean         $searchVariableName
+        * @param       integer         $useRegex
+        * @param       integer         $searchVariableName
         * @return      array
         */
        public static function search($search, $replace = null, $languageID = null, $useRegex = 0, $searchVariableName = 0) {
index 56e0e800badae7f90acb1dc4a003230d8129f581..21f1cbef38350e3be0c0f746cf5eeff820c00544 100644 (file)
@@ -54,7 +54,7 @@ interface ILikeObject extends IDatabaseObjectProcessor, ITitledObject {
        /**
         * Sets the object type.
         * 
-        * @param       ObjectType
+        * @param       ObjectType      $objectType
         */
        public function setObjectType(ObjectType $objectType);
        
index d36935f0c9d2a62693505fd6ee15efe432284b69..04321f9711e8fb6c6e2794183e679c4b914a1512 100644 (file)
@@ -91,7 +91,7 @@ class LikeObject extends DatabaseObject {
        /**
         * Sets the liked object.
         * 
-        * @param       ILikeObject     $likeObject
+        * @param       ILikeObject     $likedObject
         */
        public function setLikedObject(ILikeObject $likedObject) {
                $this->likedObject = $likedObject;
index 9fa893d461b91b41703e5ff8855d75448026e6bf..ca16b9a08ec5f67e64915012262bfe9ae5dd38a4 100644 (file)
@@ -295,17 +295,17 @@ class Package extends DatabaseObject {
         * @param       string          $fromVersion
         * @return      boolean
         */
-       public static function checkFromversion($currentVersion, $fromversion) {
-               if (mb_strpos($fromversion, '*') !== false) {
+       public static function checkFromversion($currentVersion, $fromVersion) {
+               if (mb_strpos($fromVersion, '*') !== false) {
                        // from version with wildcard
                        // use regular expression
-                       $fromversion = str_replace('\*', '.*', preg_quote($fromversion, '!'));
-                       if (preg_match('!^'.$fromversion.'$!i', $currentVersion)) {
+                       $fromVersion = str_replace('\*', '.*', preg_quote($fromVersion, '!'));
+                       if (preg_match('!^'.$fromVersion.'$!i', $currentVersion)) {
                                return true;
                        }
                }
                else {
-                       if (self::compareVersion($currentVersion, $fromversion, '=')) {
+                       if (self::compareVersion($currentVersion, $fromVersion, '=')) {
                                return true;
                        }
                }
index 81a9daca3265b2e39c9f3d952b07e4832bfbb6df..067f71d1c9aaeccf10125a9df7ab1efa3358c6e1 100644 (file)
@@ -77,7 +77,6 @@ class PageNodeTree {
         * 
         * @param       integer                 $parentID
         * @param       PageNode                $parentNode
-        * @param       int[]                   $filter
         * @return      PageNode[]
         */
        protected function generateNodeTree($parentID, PageNode $parentNode = null) {
index e583db7f9f3ee85ab721135af2c4c75fd93b357c..92af1e47c54c6acc12ac6df366d6344aa324d3a2 100644 (file)
@@ -100,10 +100,10 @@ class Template extends DatabaseObject {
         * @param       string          $search         search query
         * @param       string          $replace
         * @param       array           $templateIDs
-        * @param       boolean         $invertTemplates
-        * @param       boolean         $useRegex
-        * @param       boolean         $caseSensitive
-        * @param       boolean         $invertSearch
+        * @param       integer         $invertTemplates
+        * @param       integer         $useRegex
+        * @param       integer         $caseSensitive
+        * @param       integer         $invertSearch
         * @return      array
         */
        public static function search($search, $replace = null, $templateIDs = null, $invertTemplates = 0, $useRegex = 0, $caseSensitive = 0, $invertSearch = 0) {
index b4b7e0ad7ecb2a8df351fe4550387b18ce70491b..65108c16d41753b53c608a131285c783393b768d 100644 (file)
@@ -149,7 +149,7 @@ class UserEditor extends DatabaseObjectEditor implements IEditableCachedObject {
        /**
         * Adds a user to the groups he should be in.
         * 
-        * @param       array           $groups
+        * @param       array           $groupIDs
         * @param       boolean         $deleteOldGroups
         * @param       boolean         $addDefaultGroups
         */
index ae49c3a64e8cd364b4863a8a5f7212ad88a65977..fd504c9349e5cd8c34d246b16f90dafc0b6e2344 100644 (file)
@@ -275,10 +275,10 @@ class WCF {
        /**
         * Turns PHP errors into an ErrorException.
         * 
-        * @param       integer         $errorNo
+        * @param       integer         $severity
         * @param       string          $message
-        * @param       string          $filename
-        * @param       integer         $lineNo
+        * @param       string          $file
+        * @param       integer         $line
         */
        public static final function handleError($severity, $message, $file, $line) {
                // this is neccessary for the shut-up operator
index 2323cc28405639ce59a90b385541045dc614984e..674ce706c3ee28622af06e7aed7cb4b0f12752e8 100644 (file)
@@ -130,7 +130,7 @@ class AttachmentBBCode extends AbstractBBCode {
        /**
         * Sets the attachment list.
         * 
-        * @param       \wcf\data\attachment\GroupedAttachmentList      $attachments
+        * @param       \wcf\data\attachment\GroupedAttachmentList      $attachmentList
         * @deprecated
         */
        public static function setAttachmentList(GroupedAttachmentList $attachmentList) {
index d81bc7e79b2cc35974db5fe40d81707caae6f9d7..c7139867a8685372b2ca0135e50408d97e036089 100644 (file)
@@ -69,7 +69,7 @@ interface IRuntimeCache {
        /**
         * Removes the objects with the given ids from the runtime cache if they have already been loaded.
         *
-        * @param       integer         $objectID
+        * @param       integer[]       $objectIDs
         */
        public function removeObjects(array $objectIDs);
 }
index e2a0e88e27a9c9ded2de900d0ba37aff27a28411..4bc8f59c9c9ca15f1e216d572457f1c658a8151d 100644 (file)
@@ -7,7 +7,7 @@ use wcf\data\IDatabaseObjectProcessor;
  * Every concrete condition implementation needs to implement this interface.
  * 
  * @author     Matthias Schmidt
- * @copyright  2001-2015 WoltLab GmbH
+ * @copyright  2001-2016 WoltLab GmbH
  * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
  * @package    com.woltlab.wcf
  * @subpackage system.condition
@@ -43,14 +43,12 @@ interface ICondition extends IDatabaseObjectProcessor {
         * Extracts all needed data from the given condition to pre-fill the output
         * for editing the given condition.
         * 
-        * @param       \wcf\data\condition\Condition   $condition
+        * @param       Condition       $condition
         */
        public function setData(Condition $condition);
        
        /**
-        * Validates the given data.
-        * 
-        * @param       string          $value
+        * Validates the read condition data.
         */
        public function validate();
 }
index 8ed5bc57d316fcffec55e1c92a025c6080491d1a..b6c8be1a6e48f0d83427cbcaa079ada8c657cd6a 100644 (file)
@@ -186,8 +186,8 @@ class CronjobScheduler extends SingletonFactory {
        /**
         * Logs cronjob exec success or failure.
         * 
-        * @param       \wcf\data\cronjob\CronjobEditor         $logEditor
-        * @param       \wcf\system\exception\SystemException   $exception
+        * @param       CronjobLogEditor        $logEditor
+        * @param       SystemException         $exception
         */
        protected function logResult(CronjobLogEditor $logEditor, SystemException $exception = null) {
                if ($exception !== null) {
index ffd558bb9140399a4bb8a62c4e11d0459c90c0d1..463766867f58c6663749f7a091cac493d0c7d4bc 100644 (file)
@@ -297,7 +297,7 @@ class Email {
        /**
         * Sets the email's 'Reply-To'.
         * 
-        * @param       \wcf\system\email\Mailbox       $sender
+        * @param       Mailbox         $replyTo
         */
        public function setReplyTo(Mailbox $replyTo = null) {
                $this->replyTo = $replyTo;
index 5bb7e2922bb3f93f869f175a25dbcdc52c09a12f..4099d55943cd397ab4f2430cb1871be18eda8af9 100644 (file)
@@ -54,7 +54,7 @@ class AJAXException extends LoggedException {
         * Throws a JSON-encoded error message
         * 
         * @param       string          $message
-        * @param       boolean         $isDoomsday
+        * @param       integer         $errorType
         * @param       string          $stacktrace
         * @param       array           $returnValues
         * @param       string          $exceptionID
index 3b2301e7e47daa54106f8b982f5015e731e8e90c..52b0b6d53af725974658381b3d27669fe5aa443c 100644 (file)
@@ -23,7 +23,7 @@ class FTP {
         * Opens a new ftp connection to given host.
         * 
         * @param       string          $host
-        * @param       string          $port
+        * @param       integer         $port
         * @param       integer         $timeout
         */
        public function __construct($host = 'localhost', $port = 21, $timeout = 30) {
index a7db3ef164a446a145807017f581f3bbf71a2f89..095626ee90a921d0c67accb47b3a7d4f1c189a52 100644 (file)
@@ -31,8 +31,9 @@ interface ILabelObjectHandler {
        /**
         * Returns true, if all given label ids are valid and accessible.
         * 
-        * @param       array<integer>          $labelIDs
-        * @param       array                   $optionName
+        * @param       integer[]       $labelIDs
+        * @param       string          $optionName
+        * @param       boolean         $legacyReturnValue
         * @return      mixed
         */
        public function validateLabelIDs(array $labelIDs, $optionName = '', $legacyReturnValue = true);
index 6b13da2833eef9795eb07b9f054d5c6da127279b..7e37d5c4a1d6f1ffeb6f7872bc8cf733261c1690 100644 (file)
@@ -357,7 +357,7 @@ class I18nHandler extends SingletonFactory {
         * Sets additional options for elements, required if updating values.
         * 
         * @param       integer         $elementID
-        * @param       integer         $pckageID
+        * @param       integer         $packageID
         * @param       string          $value
         * @param       string          $pattern
         */
index 5d263b1ba778907446fcf85590e81e393944e84d..a53893f5b2fcfc01b3b04bc0efa7921bdc4fb5c8 100644 (file)
@@ -351,8 +351,8 @@ class PackageInstallationNodeBuilder {
         * nodes to provide to be descendants of the new node. If you intend
         * to insert more than a single node, you should prefer shiftNodes().
         * 
-        * @param       string                  $beforeNode
-        * @param       \wcf\system\Callback    $callback
+        * @param       string          $beforeNode
+        * @param       Callback        $callback
         */
        public function insertNode($beforeNode, Callback $callback) {
                $newNode = $this->getToken();
index 7e0e6e546e7bfa94b62625ba0ae26ab6c91335d6..5add17dd68186e9afe781b54ab77f26ef84e74b9 100644 (file)
@@ -632,8 +632,8 @@ class PackageInstallationScheduler {
        /**
         * Gets stored auth data of given update server.
         * 
-        * @param       array           $updateServer
-        * @return      array           $authData
+        * @param       array           $data
+        * @return      array
         */
        protected function getAuthData(array $data) {
                $updateServer = new PackageUpdateServer(null, $data);
index a5d324e6f4c0af5bb9f3c8dfb29d3552a749a4d3..b3aafc78d75e80a63f5fd3fbaf01902d23b12d90 100644 (file)
@@ -279,11 +279,11 @@ class StyleCompiler extends SingletonFactory {
         * Compiles SCSS stylesheets into one CSS-stylesheet and writes them
         * to filesystem. Please be aware not to append '.css' within $filename!
         * 
-        * @param       string                  $filename
-        * @param       array<string>           $files
-        * @param       array<string>           $variables
-        * @param       string                  $individualScss
-        * @param       \wcf\system\Callback    $callback
+        * @param       string          $filename
+        * @param       string[]        $files
+        * @param       string[]        $variables
+        * @param       string          $individualScss
+        * @param       Callback        $callback
         */
        protected function compileStylesheet($filename, array $files, array $variables, $individualScss, Callback $callback) {
                foreach ($variables as &$value) {
index 75c9df7a725ef3029848aad744c641ab3868827d..0fc530c3cc0c5ecf2784ba0c49d23a226fcc072c 100644 (file)
@@ -74,8 +74,7 @@ class UploadHandler {
        /**
         * Validates the uploaded files. Returns true on success, otherwise false.
         * 
-        * @param       integer         $maxFilesize
-        * @param       array<string>   $fileExtensions
+        * @param       IUploadFileValidationStrategy   $validationStrategy
         * @return      boolean
         */
        public function validateFiles(IUploadFileValidationStrategy $validationStrategy) {
index 315a8def23843cf107d7f63baafb31e308c8c842..b6e0670322e1fcfc13a33c053a29252c6cd86ac6 100644 (file)
@@ -23,7 +23,7 @@ interface IMultiRecipientCommentUserNotificationObjectType {
         * Returns the user ids of the notification recipients. If an empty array
         * is returned, no notifications should be sent.
         * 
-        * @param       integer         $comment
+        * @param       Comment         $comment
         * @return      integer[]
         */
        public function getRecipientIDs(Comment $comment);
index 28ce21608b1ba635492fac9ad4aa562cac100d40..b2001506f29ecf6688643b9480254503374cd013 100644 (file)
@@ -97,12 +97,12 @@ class UserObjectWatchHandler extends SingletonFactory {
        /**
         * Updates a watched object for all subscriber.
         * 
-        * @param       string                                                          $objectType
-        * @param       integer                                                         $objectIDs
-        * @param       string                                                          $notificationEventName
-        * @param       string                                                          $notificationObjectType
-        * @param       \wcf\system\user\notification\object\IUserNotificationObject    $notificationObject
-        * @param       array                                                           $additionalData
+        * @param       string                          $objectType
+        * @param       integer                         $objectID
+        * @param       string                          $notificationEventName
+        * @param       string                          $notificationObjectType
+        * @param       IUserNotificationObject         $notificationObject
+        * @param       array                           $additionalData
         */
        public function updateObject($objectType, $objectID, $notificationEventName, $notificationObjectType, IUserNotificationObject $notificationObject, array $additionalData = array()) {
                // get object type id
index 60fac9afbb21f3a2e9cb5d06390392102123fed4..deafb86235ad69ecc2f24b99c514bc59299c74f0 100644 (file)
@@ -88,9 +88,9 @@ final class DirectoryUtil {
        /**
         * Returns an instance of DirectoryUtil (or child).
         * 
-        * @param       string          $directory      path
+        * @param       string          $tmpDirectory   path
         * @param       boolean         $recursive      walk through sub-directories too
-        * @return      \wcf\util\DirectoryUtil
+        * @return      DirectoryUtil
         */
        public static function getInstance($tmpDirectory, $recursive = true) {
                $directory = realpath(FileUtil::unifyDirSeparator($tmpDirectory));
@@ -249,8 +249,8 @@ final class DirectoryUtil {
        /**
         * Executes a callback on each file and returns false if callback is invalid.
         * 
-        * @param       \wcf\system\Callback            $callback
-        * @param       \wcf\system\Regex               $pattern        callback is only applied to files matching the given pattern
+        * @param       Callback        $callback
+        * @param       Regex           $pattern        callback is only applied to files matching the given pattern
         * @return      boolean
         */
        public function executeCallback(Callback $callback, Regex $pattern = null) {